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 / gayatri chhotray

int main()
{
int i;
int j;
for(i = 1; i <= 6; i++)
{
for(j = i; j >= 1; j--)
{

cout<<j<<" ";
}
}
return 0;
}

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible for the objects to read and write themselves?

1067


Describe the process of creation and destruction of a derived class object?

1086


What is a local reference?

1156


Is c++ primer good for beginners?

999


Explain the register storage classes in c++.

1166


Can we declare a base-class destructor as virtual?

973


Give an example of run-time polymorphism/virtual functions.

972


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

2304


Can malloc be used in c++?

1049


What is oops in c++?

1012


What is the difference between equal to (==) and assignment operator (=)?

1042


what is the use of void main() in C++ language?

1082


What are the different types of polymorphism in c++?

1092


Explain the difference between abstract class and interface in c++?

944


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

1025