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


Please Help Members By Posting Answers For Below Questions

Explain about Virtual Function in C++?

613


What is istream and ostream in c++?

599


What is a buffer c++?

586


Which sort does c++ use?

580


What is a dangling pointer in c++?

663






What is a storage class used in c++?

618


What are special characters c++?

566


Mention the ways in which parameterized can be invoked.

540


What are the five basic elements of a c++ program?

583


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

607


What is the main function c++?

604


Which ide is best for c++?

548


Is oops and c++ same?

580


Explain class invariant.

588


Explain the purpose of the keyword volatile.

638