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 you know about c++?
What is array give example?
What is an html tag?
What is stl containers in c++?
Differentiate between the message and method in c++?
Does c++ support multilevel and multiple inheritances?
What is difference between c++ and c ++ 14?
Explain operator overloading.
What are the two types of comments, and how do they differ?
What is the C-style character string?
What is setiosflags c++?
What is meant by a delegate?
What do you understand by zombie objects in c++?
What is virtual table?
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.