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 the operator in c++?
Difference between delete and free.
Can circle be called an ellipse?
What is virtual function? Explain with an example
What is pointer to member?
What's c++ used for?
Who made c++?
Evaulate: 22%5 a) 2 b) 4 c) 0
What is a node class in c++?
How can you tell what shell you are running on unix system?
Which ide is best for c++?
What are the 2 main types of data structures?
How can we read/write Structures from/to data files?
What is null c++?
Which operator cannot overload?