DevelopersSociety

Tuesday, December 9, 2014

C++ Tutorial- Program- 7- Nested for loop


Code:

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

Output:


No comments:

Post a Comment