62./*Write
a program to print this series.*/
#include<stdio.h>
#include<conio.h>
main()
{
int n,i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",i);
}
printf("\n");
}
getch();
}
OUTPUT
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
No comments:
Post a Comment