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

Explain terminate() and unexpected() function?

1114


What are the advantages of using const reference arguments in a function?

1086


State two differences between C and C++.

1185


What is the difference between a "copy constructor" and an "assignment operator" in C++?

1092


What is a singleton class c++?

1052


How would you obtain segment and offset addresses from a far address of a memory location?

1096


Explain the extern storage classes in c++.

1069


What are the types of pointer?

1112


Array base access faster or pointer base access is faster?

2320


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3859


Explain about vectors in c ++?

1042


What is the function of I/O library in C++ ?

1214


Does dev c++ support c++ 11?

1033


What are the two types of polymorphism?

1155


What is abstraction in c++?

1376