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 the code that display the format just like
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
6 5 4 3 2 1

Answer Posted / prasenjit roy

int main()
{
int i;
int j;
for(i = 1; i <= 6; i++)
{
for(j = i; j >= 1; j--)
cout<<j<<" ";
cout<<endl;
}
return 0;
}

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give example of a pure virtual function in c++?

1154


Which programming language is best to learn first?

1046


What are abstract data types in c++?

970


what is a reference variable in C++?

1215


write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

2362


What are the various situations where a copy constructor is invoked?

1123


What is a c++ map?

1374


How do you flush a buffer in c++?

1085


When to use “const” reference arguments in a function?

1058


What is name hiding in c++?

1145


What is type of 'this' pointer?

1048


What is a manipulator in c++?

1224


What are the defining traits of an object-oriented language?

1187


How are the features of c++ different from c?

1076


Is java easier than c++?

1008