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 bit rate & baud rate? plz give wave forms
What is wrong with this declaration?
Why malloc is faster than calloc?
Should I learn c before c++?
Is fortran faster than c?
How can I write functions that take a variable number of arguments?
Compare and contrast compilers from interpreters.
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
Explain what is the benefit of using an enum rather than a #define constant?
What is difference between arrays and pointers?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
What is difference between structure and union with example?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
How to get string length of given string in c?
Can we increase size of array in c?