/* 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();
}
#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