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 is pointer to pointer in c with example?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
How can I find the modification date of a file?
Explain heap and queue.
Who is the main contributor in designing the c language after dennis ritchie?
Is exit(status) truly equivalent to returning the same status from main?
What is meant by type specifiers?
How does normalization of huge pointer works?
Which is best linux os?
How can I find out the size of a file, prior to reading it in?
What is #line in c?
What is the purpose of void pointer?
What is volatile variable in c with example?
Why header files are used?
What is the difference between c and python?