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 is objective c different from c++?
What is constructor in C++?
What is setf in c++?
What are the four main data types?
What is the this pointer?
What is stl containers in c++?
What is runtime errors c++?
What do manipulators do?
What is the difference between delegation and implemented-in-terms-of?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
Keyword mean in declaration?
Define stacks. Provide an example where they are useful.
Mention the purpose of istream class?
What is the difference between strcpy() and strncpy()?
What is the need of a destructor? Explain with the help of an example.