Answer Posted / sevak.yatrik777
#include<stdio.h>
#include<conio.h>
main()
{
int n,i,j;
clrscr();
printf("enter the number");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
printf("%d",j);
printf("\n");
}
getch();
}
Read more:
http://wiki.answers.com/Q/C_program_to_generate_parkside%27s_triangle_numbers#ixzz1M2ugMMU6
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do c compilers work?
What is a sequential access file?
What is typedef example?
Explain about C function prototype?
Explain how can I remove the trailing spaces from a string?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
Why is c not oop?
What do you understand by normalization of pointers?
What is spaghetti programming?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What is the use of structure padding in c?
Which header file is used for clrscr?
What's the difference between constant char *p and char * constant p?
What is call by value in c?
How can I find out how much free space is available on disk?