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 / naman patidar

#include <iostream.h>

int main(){
char start ='z';
char end ='v';
int limit = start-end+1;

for(int i=0; i<limit; i++){
char ch = start+1;

for(int j=0; j<limit; j++){
if( j>=i ){
cout<<--ch<<"\t";
} else {
cout<<"\t";
}
}
for(int k=limit-1; k>i ; k--){
cout<<++ch<<"\t";
}
cout<<"\n\n";
}
return 0;
}

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is turbo c++ free?

1058


Why c++ is created?

982


What is the use of string in c++?

1007


What you know about structures in C++?

1049


Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes

1065


Which is the best c++ software?

1084


What is an accessor in c++?

1062


Is c or c++ more useful?

1031


Write bites in Turbo c++ Header ("Include") Files.

1250


What is string in c++ programming?

1157


Can we use struct in c++?

1006


What is cout flush?

1011


What is the operator in c++?

1111


What is function overloading in C++?

1403


What are move semantics?

1133