Print the foll in C...eg when n=5 the o/p must b
+ +
+ + + +
+ + + + +
+ + + +
+ +
Answer Posted / ataraxic
char *m[] = { "+ +", "++ ++", "+++++" };
for (i=1; i <= 5; i++)
printf("%s\n", m[5%i]);
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Explain union.
write a program to create a sparse matrix using dynamic memory allocation.
Are the outer parentheses in return statements really optional?
Do you know the use of fflush() function?
int far *near * p; means
Why is struct padding needed?
How to Throw some light on the splay trees?
program for reversing a selected line word by word when multiple lines are given without using strrev
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Write a program to print numbers from 1 to 100 without using loop in c?
Why is c so important?
Write a code to generate a series where the next element is the sum of last k terms.
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Which type of language is c?