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
What is the use of vtable?
What language is a dll written in?
What is the best it certification?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
Is c++ a good beginners programming language?
Write about the local class and mention its use?
What are move semantics?
By using c++ with an example describe linked list?
How can a struct in c++ differs from a struct in c?
What is auto used for in c++?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
Will the following program execute?
What is c++ and its uses?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
When must you use a pointer rather than a reference?