write a program in c++ to generate imp
z y x w v w x y z
z y x w x y z
z y x y z
z y z
z
Answer Posted / gayatri chhotray
#include<iostream>
using namespace std;
int main()
{
int i;
int j;
int n = 118;
char c;
for(i = 1; i <= 5; i++)
{
for(j = 122; j >= n +(i-1); j--)
{
c = j;
cout<<c<<" ";
}
for(j=j+2; j<=122; j++)
{
c = j;
cout<<c<<" ";
}
}
return 0;
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is time h in c++?
If a function doesn’t return a value, how do you declare the function?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
What is #include c++?
Do you know what is overriding?
What is the difference between C and CPP?
What is the difference between global int and static int declaration?
Name the operators that cannot be overloaded in C++?
how to connect with oracle 9i with server in socket program in c/c++
Why is c++ called oops?
What is a binary file? List the merits and demerits of the binary file usagein C++.
What is difference between c++ and c ++ 14?
What are the operators in c++?
what is data encapsulation in C++?
What is pure virtual function?