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

#include<iostream.h>
#include<conio.h>
void main()
{
for(int i=1;i<=10;i++)
{
for(int j=1;j<=i;j++)
{
cout<<j;
}
cout<<endl;
}
}

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by int main ()?

1258


What is ambagious result in C? explain with an example.

2701


What is bubble sort technique in c?

1040


What happens if a header file is included twice?

1079


What is the difference between far and near ?

1245


What is a file descriptor in c?

1199


Give me the code of in-order recursive and non-recursive.

1423


Explain Function Pointer?

1244


C language questions for civil engineering

1767


What is meant by inheritance?

1154


What is difference between union and structure in c?

1248


Tell me what is null pointer in c?

1133


Why does not c have an exponentiation operator?

1120


Why is it usually a bad idea to use gets()? Suggest a workaround.

1873


Can you write the function prototype, definition and mention the other requirements.

1201