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
Why is c called "mother" language?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is the process to create increment and decrement stamen in c?
What is the value of c?
What is the benefit of using an enum rather than a #define constant?
Is c language still used?
What are the advantages and disadvantages of pointers?
What is character constants?
What does a pointer variable always consist of?
Is malloc memset faster than calloc?
What is include directive in c?
What is type qualifiers?
Can we declare a function inside a function in c?
Is main is user defined function?
What are global variables?