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
Write a Program for find and replace a character in a string.
Which bit wise operator is suitable for putting on a particular bit in a number?
Implement stack operations with pointers with appropriate exception checks.
Who invented turbo c++?
What it is and how it might be called (2 methods).
What do manipulators do?
Can I learn c++ without c?
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
Is c++ the best programming language?
Show the application of a dynamic array with the help of an example.
Will this c++ program execute or not?
What is the benefit of encapsulation?
What is ios in c++?
How do c++ struct differs from the c++ class?
What are the 2 main types of data structures?