program for following output using for loop?
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Answer Posted / natu
Hellow Sashi Ur wrong because Ur program is giving output as
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
but the expected output is
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
please refer and tell me
| Is This Answer Correct ? | 49 Yes | 0 No |
Post New Answer View All Answers
What is a structure in c language. how to initialise a structure in c?
What is conio h in c?
Is that possible to add pointers to each other?
How can I recover the file name given an open stream or file descriptor?
Why structure is used in c?
How would you rename a function in C?
Whats s or c mean?
How can I ensure that integer arithmetic doesnt overflow?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
Explain can static variables be declared in a header file?
Write the syntax and purpose of a switch statement in C.
Write a code to remove duplicates in a string.
Is there any data type in c with variable size?
Describe the header file and its usage in c programming?
How can I read a binary data file properly?