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
Explain about Virtual Function in C++?
What is istream and ostream in c++?
What is a buffer c++?
Which sort does c++ use?
What is a dangling pointer in c++?
What is a storage class used in c++?
What are special characters c++?
Mention the ways in which parameterized can be invoked.
What are the five basic elements of a c++ program?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
What is the main function c++?
Which ide is best for c++?
Is oops and c++ same?
Explain class invariant.
Explain the purpose of the keyword volatile.