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
string reverse using recursion
i got 75% in all semester am i eligible for your company
What are the advantages of c preprocessor?
Explain how do you generate random numbers in c?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
What is #line in c?
Write a program to reverse a string.
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
How many types of arrays are there in c?
What is echo in c programming?
What is a MAC Address?
What is structure data type in c?
How can I handle floating-point exceptions gracefully?
What is a good data structure to use for storing lines of text?
Can you please explain the difference between syntax vs logical error?