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<<" ";
}
cout<<endl;
}
return 0;
}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use #include conio h in c++?

789


If you don’t declare a return value, what type of return value is assumed?

736


Is it possible to provide special behavior for one instance of a template but not for other instances?

827


What is a singleton class c++?

757


Write some differences between an external iterator and an internal iterator?

805


What is object oriented programming (oop)?

857


What is rvalue?

897


Can I make ios apps with c++?

765


Write a program to find the Factorial of a number

794


What is operators in c++?

785


What are the four partitions in which c++ compiler divides the ram?

976


Does c++ vector allocate memory?

729


What is the use of 'using' declaration in c++?

846


how to explain our contribution in the project?

3357


What is low level language in simple words?

795