Write a C program to get the desired output.
1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
.
.
.
1 n..............n 1
Note: n is a positive integer entered by the user.
Answer Posted / ch.mahathi
could anyone please assist me in getting the output in the following way?
For example, if you have entered a pin number like 532211 as the input to the program , then the output should be like this
(5)+(5+3)+(5+3+2)+(5+3+2+1)+(5+3+2+2+1)+(5+3+2+2+1+1)
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are linked lists in c?
If null and 0 are equivalent as null pointer constants, which should I use?
What are volatile variables in c?
Explain the use of fflush() function?
What is the size of structure in c?
Explain how can I avoid the abort, retry, fail messages?
Write a program to print numbers from 1 to 100 without using loop in c?
What are the header files used in c language?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What is struct node in c?
How can you allocate arrays or structures bigger than 64K?
How can you find the day of the week given the date?
differentiate built-in functions and user – defined functions.
find the sum of two matrices and WAP for it.
What is #include stdlib h?