Search This Blog

Sunday, 23 August 2020

Do while loop 1

 #include<iostream>

using namespace std;

int main()

{

int a,b;

cout<<"enter the starting series and end point of loop"<<endl;

cin>>a>>b;

do{

cout<<"value of a : "<<a<<endl;

a=a+1;

}

while(a<b);

return 0;

}


No comments:

Post a Comment

Search This Blog

Contact Form

Name

Email *

Message *

Popular Posts