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
an integer constant must have atleast one a) character b) digit c) decimal point
What is #include math h in c++?
Explain the operation of overloading of an assignment operator.
What relational operators if statements in c++?
What is stl containers in c++?
Explain the use of this pointer?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
what is upcasting in C++?
Explain how to initialize a const data member.
What is flag in computer?
We use library functions in the program, in what form they are provided to the program?
Why is the function main() special?
What is the type of 'this' pointer?
Explain what is class definition in c++ ?
What does new do in c++?