[Solved] What’s wrong with this program in C++?
[ad_1] This should do the work. #include <iostream> using namespace std; void chap(char,int,int); int main() { int x,z,q; char y; cout<<“do you want run program?”; cin>>x; while(x!=0) { cout<<“enter your character: \n”; cin>>y; cout<<“\nenter the number of lines: \n”; cin>>z; cout<<“enter 1 for normal pattern and enter 0 for unnormal pattern : \n”; cin>>q; chap(y,z,q); … Read more