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 binary object model?
What is pointer in c++ with example?
Why is polymorphism useful?
Why are pointers not used in c++?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
Describe delete operator?
What is data binding in c++?
What is c++ manipulator?
Difference between pass by value and pass by reference?
Differentiate between realloc() and free().
What is the rule of three?
What is while loops?
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
What is buffering in c++?
How new/delete differs from malloc()/free?