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


Please Help Members By Posting Answers For Below Questions

What is the difference between struct and typedef struct in c?

1087


What is c token?

1012


What is || operator and how does it function in a program?

1043


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2345


Why do we use c for the speed of light?

1106


What is formal argument?

1094


Explain high-order bytes.

1062


List some of the static data structures in C?

1158


How does #define work?

1014


Tell me when would you use a pointer to a function?

1015


How can I list all of the predefined identifiers?

929


what is the role you expect in software industry?

2085


What are keywords in c with examples?

1042


how should functions be apportioned among source files?

1064


Explain why can’t constant values be used to define an array’s initial size?

1307