DevelopersSociety

Tuesday, December 9, 2014

C++ Tutorial- Program- 8- While loop


Code:

#include<iostream>
using namespace std; 
main()
{   
    int a=0;
while(a<3)
{   
   cout<<"a="<<a<<endl;
    a++;
}
}

Output:


No comments:

Post a Comment