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
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What is the correct declaration of main?
What is hashing in c?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
How do I send escape sequences to control a terminal or other device?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Why is this loop always executing once?
What is the scope of an external variable in c?
What is the meaning of typedef struct in c?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Explain is it valid to address one element beyond the end of an array?
What is a spanning Tree?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
What is #define?
What are the c keywords?