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 / gayatri chhotray
int main()
{
int i;
int j;
for(i = 1; i <= 6; i++)
{
for(j = i; j >= 1; j--)
{
cout<<j<<" ";
}
}
return 0;
}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Describe Trees using C++ with an example.
Why was c++ created?
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
Is there a c++ certification?
What is a terminating character in c++?
How a new element can be added or pushed in a stack?
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
Explain rethrowing exceptions with an example?
Explain selection sorting?
Which software is best for programming?
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
Is c++ a programming language?
Can we run c program in turbo c++?
Difference between inline functions and macros?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is