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 / prasenjit roy
int main()
{
int i;
int j;
for(i = 1; i <= 6; i++)
{
for(j = i; j >= 1; j--)
cout<<j<<" ";
cout<<endl;
}
return 0;
}
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Can I make ios apps with c++?
What is buffer and example?
What are the restrictions apply to constructors and destructors?
How const int *ourpointer differs from int const *ourpointer?
Differentiate between declaration and definition.
What things would you remember while making an interface?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Write a program to find the Fibonacci series recursively.
Does c++ vector allocate memory?
What is a driver program?
Can create new c++ operators?
What are vectors used for in c++?
Explain about vectors in c ++?
What is the size of integer variable?
What is decltype c++?