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

#include<iostream.h>
void main()
{
for(int i=1;i<=6;i++)
{
for(int j=i;j>=1;j--)
{
cout<<j<<"\t";
}
cout<<"\n";
}
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How much do coding jobs pay?

1024


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1568


Difference between declaration and definition of a variable.

1180


What is an overflow error?

1114


How does atoi function work?

1159


What are register variables?

1159


Explain the difference between c & c++?

1102


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

1121


Can we get the value of ios format flags?

1142


Tell me can a pure virtual function have an implementation?

1043


What is setfill c++?

1166


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

1078


Using a smart pointer can we iterate through a container?

1092


Why cstdlib is used in c++?

1051


Can we make any program in c++ without using any header file and what is the shortest program in c++.

1138