Print the following formates.
1
12
123
1234
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,num;
clrscr();
printf("input the number");
scanf("%d",&num);
for(i=1;<=num;i++)
{
for(j=1;j<=i-1;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
Gd work
ReplyDeleteBole to jhakkasss babe
ReplyDeleteGd
ReplyDeleteGd
ReplyDeleteGd
ReplyDeleteExcellent
ReplyDeleteKeep it up
ReplyDelete