program for following output using for loop?
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Answer Posted / sampath
for(i=1;i<=5;i++){
for(j=i;j<=i;j++)
printf("%d",i);
printf("\n");
}
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is data type long in c?
Explain what are the __date__ and __time__ preprocessor commands?
What are the types of data files?
Is there any possibility to create customized header file with c programming language?
What is scanf () in c?
Explain what are bus errors, memory faults, and core dumps?
What is extern keyword in c?
explain what are pointers?
Is c compiled or interpreted?
What is meant by inheritance?
Can we change the value of #define in c?
Disadvantages of C language.
What is the best way to comment out a section of code that contains comments?
What are the different types of pointers used in c language?
simple program of graphics and their output display