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
what is the significance of static storage class specifier?
Explain what are bus errors, memory faults, and core dumps?
Why ca not I do something like this?
Why c is procedure oriented?
What is a good data structure to use for storing lines of text?
What is the purpose of sprintf?
Where is c used?
What is huge pointer in c?
When is a “switch” statement preferable over an “if” statement?
What is the size of enum in bytes?
What does #pragma once mean?
Is struct oop?
How can you restore a redirected standard stream?
What is sizeof array?
What are the types of assignment statements?