=
a = b;
==
123456789101112131415161718192021222324252627282930313233343536
#include <iostream> int main( ) { //Declare all Variables Here int size; char shape; //f-> forward b->backward x->cross //Input or initialize values Here std::cout << "Create a numbered shape that can be sized.\n" << "Input an integer number [1,50] and a character [x,b,f].\n" ; std::cin >> size >> shape ; if( size < 1 || size > 50 ) { std::cout << "error: invalid size. not in [1,50]\n" ; return 1 ; } if( shape == 'x' ) { // note the quotes: literal character 'x' // x : draw shape cross\n } else if( shape == 'b' ) { // b : draw shape backslash } else if( shape == 'f' ) { // f : draw shape slash } else std::cout << "error: invalid shape. not one of [x,b,f]\n" ; }