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
What are the 5 organizational structures?
Is linux written in c?
Explain how do you convert strings to numbers in c?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
Suggesting that there can be 62 seconds in a minute?
What is a const pointer in c?
How does sizeof know array size?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
What is sorting in c plus plus?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
Do you know null pointer?
can any one provide me the notes of data structure for ignou cs-62 paper
Why is c so important?
How can I do peek and poke in c?
List out few of the applications that make use of Multilinked Structures?