Write a C program to print c program to print right angled triangle of Numbers.
1234
123
12
1
main()
{
int i,j,n;
clrscr();
printf("Enter the number of Rows:");
scanf("%d",&n);
for(i=1;i<=n;)
{
for(j=1;j<=n;++j)
{
printf("%d",j);
}
printf("\n");
n--;
}
getch();
No comments:
Post a Comment