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


Please Help Members By Posting Answers For Below Questions

Why is the function main() special?

619


an operation between an integer and real always yeilds a) integer result b) real result c) float result

704


Explain about Garbage Collector?

642


Which is the best c++ software?

602


What is using namespace std in cpp?

542






Which is the best c++ compiler for beginners?

554


What is the difference between global variables and local variable

529


What do you mean by inheritance in c++? Explain its types.

608


Can we sort map in c++?

587


What is an html tag?

626


Carry out conversion of one object of user-defined type to another?

605


What is runtime polymorphism in c++?

580


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

1713


Is arr and &arr are same expression for an array?

580


How can you tell what shell you are running on unix system?

634