Ad Code

Write a program to print the numbers in new line using nested for loop.

Write a program to print the numbers in new line using nested for loop.

 


#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,c=1;
clrscr();
for(i=1;i<=4;i++)
{
for(j=1;j<=I;j++)
{
printf(“%d”,c);
c++;
}
printf(“\n”);
}
getch();
}

Post a Comment

0 Comments

Ad Code