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
Where must the declaration of a friend function appear?
Can notepad ++ run c++?
What is the best c++ compiler?
What is constructor c++?
what is C++ objects?
Where can I run c++ program?
Is it possible to provide special behavior for one instance of a template but not for other instances?
Define token in c++.
Why can’t you call invariants() as the first line of your constructor?
What is the object serialization?
What are advantages of using friend classes?
what is COPY CONSTRUCTOR and what is it used for?
What are the methods of exporting a function from a dll?
What is const pointer and const reference?
What are move semantics?