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 / suman_kotte
main()
{
int i,j;
for(i=1;i<=6;i++)
{
for(j=i;j>=1;j--)
printf("%d",j);
printf("\n");
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What will happen if a pointer is deleted twice?
What is the basic structure of a c++ program?
Ask to write virtual base class code?
Define namespace in c++?
what Is DCS ? what i will get benefit when i did?
What is a wchar_t in c++?
What would happen on forgetting [], while deallocating an array through new?
What is std namespace in c++?
Why we use #include conio h in c++?
Is c++ platform dependent?
What is #include iomanip?
How are virtual functions implemented in c++?
Should the member functions which are made public in the base class be hidden?
What are guid?
Tell me an example where stacks are useful?