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
How do we implement inheritance in c++?
Why do we use iterators?
Write a program to interchange 2 variables without using the third one.
Why c++ is called oop?
What is token c++?
Write a program which uses Command Line Arguments
Why pointer is used in c++?
Mention the purpose of istream class?
What are the characteristics of friend functions?
What is the function to call to turn an ascii string into a long?
Can I learn c++ without learning c?
why and when we can declar member fuction as a private in the class?
What is stream and its types in c++?
What's the most powerful programming language?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.