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
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
Why is swift so fast?
What is a manipulator in c++?
What is overloading unary operator?
what is multi-threading in C++?
What are static and dynamic type checking?
Explain deep copy and a shallow copy?
What is c++ iterator?
What is cout flush?
What is size_type?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What are containers in c++?
When you overload member functions, in what ways must they differ?
Can we inherit constructor in c++?
How much do c++ programmers make?