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
What is a block in c++?
What is a hashmap c++?
What is the use of pointer in c++ with example?
How many ways can a variable be initialized into in C++?
what is pre-processor in C++?
Can we define a constructor as virtual in c++?
Explain Text Manipulation Routines?
What are the 4 types of library?
You want to link a c++ program to c functions. How would you do it?
What is c++ best used for?
What is namespace std; and what is consists of?
Can we use clrscr in c++?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
What is stack unwinding?
what you know about c++?