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 the v-ptr?
What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number
What is #include iostream in c++?
What are put and get pointers?
What are advantages of c++?
What is ios class in c++?
How do you save a c++ program?
What are the different types of polymorphism in c++?
What is the difference between a baller and a reference in C++?
What is the standard template library (stl)?
What c++ is used for?
Will rust take over c++?
Is python better than c++?
Can turbo c++ run c program?
What is data types c++?