Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain the difference between abstract class and interface in c++?

986


Describe Trees using C++ with an example.

1157


How do you write a function that can reverse a linked-list?

1114


What are features of c++?

1182


What is vectorial capacity?

1165


What do the keywords volatile and mean mutable?

1052


Keyword mean in declaration?

1061


Is c++ a dying language?

1154


What is the maximum combined length of command line arguments including the space between adjacent arguments?

1000


What is the output of the following program? Why?

1146


Differentiate between an external iterator and an internal iterator?

998


Can I create my own functions in c++?

1091


Why is c++ called oops?

1177


How we can differentiate between a pre and post increment operators during overloading?

1107


Why we use #include iostream in c++?

1057