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
How much do coding jobs pay?
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
Difference between declaration and definition of a variable.
What is an overflow error?
How does atoi function work?
What are register variables?
Explain the difference between c & c++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
Can we get the value of ios format flags?
Tell me can a pure virtual function have an implementation?
What is setfill c++?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
Using a smart pointer can we iterate through a container?
Why cstdlib is used in c++?
Can we make any program in c++ without using any header file and what is the shortest program in c++.