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
Give example of a pure virtual function in c++?
Which programming language is best to learn first?
What are abstract data types in c++?
what is a reference variable in C++?
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)
What are the various situations where a copy constructor is invoked?
What is a c++ map?
How do you flush a buffer in c++?
When to use “const” reference arguments in a function?
What is name hiding in c++?
What is type of 'this' pointer?
What is a manipulator in c++?
What are the defining traits of an object-oriented language?
How are the features of c++ different from c?
Is java easier than c++?