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
Write a program to find the biggest number of three numbers in c?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Can you assign a different address to an array tag?
Explain how do you print an address?
Differentiate between static and dynamic modeling.
What is a program?
What is variables in c?
Difference between strcpy() and memcpy() function?
How do c compilers work?
Explain what are compound statements?
what is stack , heap ,code segment,and data segment
Explain Function Pointer?
Write a code of a general series where the next element is the sum of last k terms.
What is #define used for in c?