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
Are the variables argc and argv are local to main?
Explain what are the different file extensions involved when programming in c?
Does sprintf put null character?
where are auto variables stored? What are the characteristics of an auto variable?
What is function prototype?
What are the functions to open and close the file in c language?
How can you find the day of the week given the date?
praagnovation
What are inbuilt functions in c?
Explain what will the preprocessor do for a program?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Can we declare variable anywhere in c?
What is the difference between procedural and declarative language?
What is c programing language?
What is the difference between arrays and pointers?