Question: C++ Programming: Enter the number of rows (max 99): 10 Enter the number of cols (max 99): 20 Enter an interior character: | Enter an
C++ Programming: Enter the number of rows (max 99): 10 Enter the number of cols (max 99): 20 Enter an interior character: | Enter an exterior character: + + + + + + + + + + + + + + + + + + + + + + | | | | | | | | | | | | | | | | | | + + | | | | | | | | | | | | | | | | | | + + | | | | | | | | | | | | | | | | | | + + | | | | | | | | | | | | | | | | | | + + | | | | | | | | | | | | | | | | | | + + | | | | | | | | | | | | | | | | | | + + | | | | | | | | | | | | | | | | | | + + | | | | | | | | | | | | | | | | | | + + + + + + + + + + + + + + + + + + + + +
My answers not even close! :o
Please don't use bool status, for, break statements...this is very simple programming (ha! So they say) (1st year).
#include #include using namespace std;
int main(){ int row[10]; int col[20]; int size; cout<<"Enter size: "; cin>>size; cout< while (row < size) { col=0; while (col <= row) { cout<<"+"; col=col+1; } row=row+1; cout<<"|"< } return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
