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
Is multimap sorted c++?
Difference between delete and free.
How can I learn dev c++ programming?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
What is linked list in c++?
What does it mean to declare a member variable as static?
Does c++ have arraylist?
What is abstraction in c++?
What is the full form of india?
Why main function is special in c++?
What is c++ used for in games?
When must you use a pointer rather than a reference?
What are the five basic elements of a c++ program?
Explain differences between alloc() and free()?
What do you mean by static variables?