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 |
Write a code to remove duplicates in a string.
To find whether a number is even or odd without using any conditional operator??
12 Answers College School Exams Tests, IBM,
Explain how can I read and write comma-delimited text?
What is the total generic pointer type?
void main() { int i=5; printf("%d",i++ + ++i); }
When should the register modifier be used? Does it really help?
simple program of graphics and their output display
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
. A database table called PERSON contains the fields NAME, BASIC and HRA. Write a computer program to print a report which employee name and total salary for those employees whose total salary is more than 10,000. Total Salary = BASIC + HRA. At the end, the program should also print the total number of employees whose total salary is more than 10,000.
When the macros gets expanded?
what is the different bitween abap and abap-hr?
I have an array of 100 elements, each of which is a random integer. I want to know which of the elements: a) are multiples of 2 b) are multiples of 2 AND 5 c) have a remainder of 3 when divided by 7