Tuesday 24 February 2015

Nested For Loop in C++

/* Nested For Loop */

#include<iostream.h>
#include<conio.h>
int main()
{
int i,j;
clrscr();
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
cout<<"\t"<<i<<","<<j;
}
cout<<"\n";
}
return 0;
getch();
}

No comments:

Post a Comment