Question: I need to create a program in C which takes command line arguments. If the characters 'O' or 'o' are entered into the commands line,

I need to create a program in C which takes command line arguments. If the characters 'O' or 'o' are entered into the commands line, those characters must each be printed to the screen. If the characters 'X' or 'x' are entered to the command line, segments need to be taken away.

For example, if the String OOoXOXo is entered into a command line, the following must be printed to the screen:

OOo

OO

OOO

OO

OOo

Thanks for any help in advance!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!