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


Please Help Members By Posting Answers For Below Questions

What are linked lists in c?

897


If null and 0 are equivalent as null pointer constants, which should I use?

850


What are volatile variables in c?

731


Explain the use of fflush() function?

887


What is the size of structure in c?

923


Explain how can I avoid the abort, retry, fail messages?

850


Write a program to print numbers from 1 to 100 without using loop in c?

898


What are the header files used in c language?

826


any "C" function by default returns an a) int value b) float value c) char value d) a & b

901


What is struct node in c?

853


How can you allocate arrays or structures bigger than 64K?

926


How can you find the day of the week given the date?

891


differentiate built-in functions and user – defined functions.

897


find the sum of two matrices and WAP for it.

919


What is #include stdlib h?

894