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
How long will it take to learn programming?
What are the basic data types used in c++?
Mention the purpose of istream class?
What do you mean by a template?
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
When should I use unitbuf flag?
What are stacks?
How many namespaces are there in c++?
Which compiler does turbo c++ use?
Why can’t you call invariants() as the first line of your constructor?
What is istream and ostream in c++?
Differentiate between an inspector and a mutator ?
What are function prototypes?
Difference between a homogeneous and a heterogeneous container
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101