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

for(i=1;i<=5;i++){
for(j=i;j<=i;j++)
printf("%d",i);
printf("\n");
}

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data type long in c?

1078


Explain what are the __date__ and __time__ preprocessor commands?

1124


What are the types of data files?

1206


Is there any possibility to create customized header file with c programming language?

1065


What is scanf () in c?

1129


Explain what are bus errors, memory faults, and core dumps?

1280


What is extern keyword in c?

1135


explain what are pointers?

1017


Is c compiled or interpreted?

1194


What is meant by inheritance?

1090


Can we change the value of #define in c?

1001


Disadvantages of C language.

1109


What is the best way to comment out a section of code that contains comments?

1346


What are the different types of pointers used in c language?

1050


simple program of graphics and their output display

2003