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
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
Is it possible to get the source code back from binary file?
How do I write a c++ program?
Is c++ the most powerful language?
Why do we use the using declaration?
Explain stack unwinding.
What is the importance of mutable keyword?
Explain what is oop?
Can non-public members of another instance of the class be retrieved by the method of the same class?
Why is main an int?
What are the five basic elements of a c++ program?
Who created c++?
What is a terminating character in c++?
What is polymorphism & list its types in c++?
Which bit wise operator is suitable for putting on a particular bit in a number?