C-Programming
Tuesday, November 25, 2025
Write the C Program. Print the following format
Write the C Program. Print the following format
1
12
123
1234
12345
#include<stdio.h>
main( )
{
int i,j;
for(i=1;i<=5;++i)
{
for(j=1;j<=i;++j)
printf("%2d",j);
printf("\n");
}
}
Output
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment