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 / kamal

int main()
{
cout<<"1\n2 1\n3 2 1\n4 3 2 1\n5 4 3 2 1\n6 5 4 3 2 1";
return 0;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What character terminates all character array strings a) b) . c) END

955


What is the basic of c++?

798


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

863


Write a note about the virtual member function?

789


What are the benefits of pointers?

766


Explain what are accessor methods?

854


What is constructor and destructor in c++?

847


Is map ordered c++?

817


Explain the auto storage classes in c++.

823


What is #include cstdlib in c++?

885


What is split a string in c++?

901


Is c# written in c++?

719


What is virtual table?

815


what is C++ objects?

892


What is size of string in c++?

731