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
Write a Program to find whether the given number or string is palindrome.
how we can make 3d venturing graphics on outer interface
What is const keyword in c?
How to declare pointer variables?
will u please send me the placement papers to my mail???????????????????
about c language
Why c is a procedural language?
What is getche() function?
Explain modulus operator.
Where static variables are stored in c?
What is use of bit field?
Why can’t constant values be used to define an array’s initial size?
What are c header files?
What are bitwise shift operators in c programming?
Who invented bcpl language?