write a c++ program that gives output
4
3 4
2 3 4
1 2 3 4 using looping statement
Answer Posted / rajesh
4
3 4
2 3 4
1 2 3 4
#include<stdio.h>
int main()
{
int i, j, n=4;
for(i=n; i>=1; i--)
{
for(j=i; j<=n; j++)
{
printf("%d",j);
}
printf("\n");
}
printf("\n");
}
| Is This Answer Correct ? | 32 Yes | 1 No |
Post New Answer View All Answers
What is meant by iomanip in c++?
What is a memory leak c++?
Does a derived class inherit or doesn't inherit?
What is called array?
How long does it take to get good at leetcode?
Difference between pointer to constant and constant pointer to a constant. Give example.
What is a Default constructor?
What is ofstream c++?
What is the arrow operator in c++?
What are the characteristics of friend functions?
Is empty stack c++?
What does return 0 do in c++?
What are advantages of using friend classes?
Explain the isa and hasa class relationships.
Describe protected access specifiers?