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
Difference between linking and loading?
What is type qualifiers?
Differentiate between the = symbol and == symbol?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What are linked lists in c?
What do you mean by command line argument?
What is the difference between text and binary i/o?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
What is the concatenation operator?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
What is the benefit of using const for declaring constants?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
How do you override a defined macro?
What is #ifdef ? What is its application?