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 / pra japati apurv d

#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 ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between constant pointer and pointer to a constant.

1146


What is the use of a semicolon (;) at the end of every program statement?

1511


What is the difference between text and binary modes?

1197


Can the size of an array be declared at runtime?

1088


What is the use of the function in c?

1019


What is nested structure with example?

1076


write a program in c language to print your bio-data on the screen by using functions.

6789


Explain logical errors? Compare with syntax errors.

1071


to find the closest pair

2326


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

1035


Is c call by value?

1021


Can true be a variable name in c?

1043


Explain what are the __date__ and __time__ preprocessor commands?

1124


Is c# a good language?

1012


What is far pointer in c?

1313