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
Why cstdlib is used in c++?
When we use Abstract Class and when we use Interface?where we will implement in real time?
Does improper inheritance have a potential to wreck a project?
What are vectors used for in c++?
Do you know what is overriding?
What is struct c++?
What are friend classes? What are advantages of using friend classes?
What are register variables?
What programming language should I learn first?
What is the difference between a template and a macro?
What is the latest version on c++?
What is a namespace in c++?
how to explain our contribution in the project?
What is the difference between *p++ and (*p)++ ?
State the difference between pre and post increment/decrement operations.