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
Explain the difference between abstract class and interface in c++?
Describe Trees using C++ with an example.
How do you write a function that can reverse a linked-list?
What are features of c++?
What is vectorial capacity?
What do the keywords volatile and mean mutable?
Keyword mean in declaration?
Is c++ a dying language?
What is the maximum combined length of command line arguments including the space between adjacent arguments?
What is the output of the following program? Why?
Differentiate between an external iterator and an internal iterator?
Can I create my own functions in c++?
Why is c++ called oops?
How we can differentiate between a pre and post increment operators during overloading?
Why we use #include iostream in c++?