Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the 5 organizational structures?

1025


Is linux written in c?

1038


Explain how do you convert strings to numbers in c?

1077


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1907


Suggesting that there can be 62 seconds in a minute?

1044


What is a const pointer in c?

1126


How does sizeof know array size?

1114


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5947


What is sorting in c plus plus?

974


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1942


Do you know null pointer?

1021


can any one provide me the notes of data structure for ignou cs-62 paper

2171


Why is c so important?

1060


How can I do peek and poke in c?

1074


List out few of the applications that make use of Multilinked Structures?

2187