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
Why we use #include conio h in c++?
If you don’t declare a return value, what type of return value is assumed?
Is it possible to provide special behavior for one instance of a template but not for other instances?
What is a singleton class c++?
Write some differences between an external iterator and an internal iterator?
What is object oriented programming (oop)?
What is rvalue?
Can I make ios apps with c++?
Write a program to find the Factorial of a number
What is operators in c++?
What are the four partitions in which c++ compiler divides the ram?
Does c++ vector allocate memory?
What is the use of 'using' declaration in c++?
how to explain our contribution in the project?
What is low level language in simple words?