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 / lohith

#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",i);
}
printf("\n");
}
getch();
}

Is This Answer Correct ?    43 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is huge pointer in c?

1026


What is the difference between constant pointer and constant variable?

1167


How the c program is executed?

1080


What are register variables in c?

978


How can I delete a file?

1020


Can you apply link and association interchangeably?

1073


What is the meaning of typedef struct in c?

1006


Can a pointer be volatile in c?

935


what is ur strangth & weekness

2330


Can a program have two main functions?

1065


How can I read a binary data file properly?

1089


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1096


What is static and volatile in c?

1177


Can we add pointers together?

1001


Explain bit masking in c?

1085