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
Why is the function main() special?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
Explain about Garbage Collector?
Which is the best c++ software?
What is using namespace std in cpp?
Which is the best c++ compiler for beginners?
What is the difference between global variables and local variable
What do you mean by inheritance in c++? Explain its types.
Can we sort map in c++?
What is an html tag?
Carry out conversion of one object of user-defined type to another?
What is runtime polymorphism in c++?
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.
Is arr and &arr are same expression for an array?
How can you tell what shell you are running on unix system?