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 is flush programming?
Write a recursive program to calculate factorial in c++.
What is a storage class?
What does obj stand for?
How long will it take to learn programming?
What does it mean to declare a member function as static?
What is the rule of three?
Define pre-condition and post-condition to a member function in c++?
Is eclipse good for c++?
What is extern c++?
Show the declaration for a pointer to function returning long and taking an integer parameter.
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
What is the full form of c++?
Do you know the use of vtable?
What are the advantages of using friend classes?