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
Describe newline escape sequence with a sample program?
Do pointers need to be initialized?
What is line in c preprocessor?
What is a nested loop?
What is the basic structure of c?
Explain what is the stack?
What are the rules for identifiers in c?
Is c pass by value or reference?
how can f be used for both float and double arguments in printf? Are not they different types?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Differentiate between declaring a variable and defining a variable?
How can I discover how many arguments a function was actually called with?
What is structure of c program?
Explain what are the different file extensions involved when programming in c?
What are dangling pointers in c?