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
Does dev c++ support c++ 11?
What are the basic data types used in c++?
Describe Trees using C++ with an example.
Write about the use of the virtual destructor?
What is static function? Explain with an example
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
Is c++ an integer?
Can a built-in function be recursive?
What do you mean by translation unit?
How to access a variable of the structure?
What are the advantages of using friend classes?
What is a buffer c++?
Can member data be public?
Is turbo c++ free?
Describe the syntax of single inheritance in C++?