Translate

Labels

Tuesday 7 January 2014

RIGHT ANGLED TRIANGLE OF NUMBERS

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();
}



                            TRY THIS

No comments: