program for following output using for loop?
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Answer Posted / shashi kumar c.a
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
}
getch();
}
| Is This Answer Correct ? | 13 Yes | 20 No |
Post New Answer View All Answers
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What do you mean by Recursion Function?
What is typeof in c?
Why cant I open a file by its explicit path?
What is the argument of a function in c?
What are the different data types in C?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
how do you programme Carrier Sense Multiple Access
Why pointers are used?
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.....
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Why we not create function inside function.
How do you define structure?
What are the types of functions in c?
What is sizeof return in c?