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

//Answer by Riyadh
#include<stdio.h>
int main ()
{
int i,j;
for (i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("
");
}
return 0;
}

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we print only part of a string in c?

986


Write a program which returns the first non repetitive character in the string?

1073


writ a program to compare using strcmp VIVA and viva with its output.

1995


What is the equivalent code of the following statement in WHILE LOOP format?

1261


What is a newline escape sequence?

1063


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

3215


Write a program in c to replace any vowel in a string with z?

1091


Can you write the algorithm for Queue?

2045


Why does not c have an exponentiation operator?

1017


code for replace tabs with equivalent number of blanks

2108


What is pointer to pointer in c with example?

1004


Difference between constant pointer and pointer to a constant.

1084


What are the types of operators in c?

1023


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

1283


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1185