program for following output using for loop?
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Answer Posted / jayaraj.s
#include <stdio.h>
main()
{
int a,b;
for(a=1;a<=5;a++)
{
printf("\n%d",a);
for(b=1;b!=a;b++)
{
printf("%d",a);
}
}
getch();
}
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is the difference between struct and typedef struct in c?
What is c token?
What is || operator and how does it function in a program?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Why do we use c for the speed of light?
What is formal argument?
Explain high-order bytes.
List some of the static data structures in C?
How does #define work?
Tell me when would you use a pointer to a function?
How can I list all of the predefined identifiers?
what is the role you expect in software industry?
What are keywords in c with examples?
how should functions be apportioned among source files?
Explain why can’t constant values be used to define an array’s initial size?