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
what is the height of tree if leaf node is at level 3. please explain
Explain what does it mean when a pointer is used in an if statement?
Is there any data type in c with variable size?
Why is not a pointer null after calling free?
There seem to be a few missing operators ..
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
Differentiate fundamental data types and derived data types in C.
What are file streams?
Explain how are 16- and 32-bit numbers stored?
Is c still used?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Explain how can I right-justify a string?
How can I get the current date or time of day in a c program?
Describe dynamic data structure in c programming language?
What is wild pointer in c with example?