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

write a program whose output will be-
1
12
123
1234

Answer Posted / aditya nath

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

Is This Answer Correct ?    18 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which type of language is c?

1036


how to write optimum code to divide a 50 digit number with a 25 digit number??

3226


Explain how can you tell whether a program was compiled using c versus c++?

1071


What is the scope of local variable in c?

1070


Describe the order of precedence with regards to operators in C.

1013


c language interview questions & answer

1921


What is c language & why it is used?

1064


Why does everyone say not to use scanf? What should I use instead?

1387


What are the preprocessor categories?

1015


What is pointers in c?

1081


Tell me the use of bit field in c language?

1033


int i=10; printf("%d %d %d", i, i=20, i);

1568


What is volatile variable how do you declare it?

1053


Is c pass by value or reference?

1010


How do you initialize pointer variables?

1049