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
How can I insert or delete a line (or record) in the middle of a file?
Explain what is the difference between #include and #include 'file' ?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What are the advantages of Macro over function?
I have seen function declarations that look like this
hi send me sample aptitude papers of cts?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What is operator precedence?
Why do we need volatile in c?
Create a simple code fragment that will swap the values of two variables num1 and num2.
Can a variable be both const and volatile?
How can I find out if there are characters available for reading?
What is the meaning of && in c?
What are loops c?