triangle number finding program...



triangle number finding program.....

Answer / 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

More C Interview Questions

How do you determine whether to use a stream function or a low-level function?

0 Answers  


wtite a program that will multiply two integers in recursion function

4 Answers   TCS,


What is a function in c?

0 Answers  


#include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } output?

5 Answers   Ramco,


Wt are the Buses in C Language

0 Answers   Infosys,






Is c still used?

0 Answers  


how to write a prog in c to convert decimal number into binary by using recursen function,

1 Answers  


Is anything faster than c?

0 Answers  


What are the different data types in C?

0 Answers  


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

0 Answers  


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

0 Answers  


What is null in c?

0 Answers  


Categories