c++
Write 3 Functions A( ), B( ) & C(int) - For A( ) use aGlobal counter, but for B( ) use a static counter within B( ) andfor C(int) pass a local counter from main( )
In main( ), create a loop and prompt the user toenter A, B, C or Q and depending on the answer, go to that Functionand display the Function name
The 2nd time that the user enters A display AA andthe 3rd time display AAA (continue until Q is entered)
The user should be able to enter the 3 letters inany order and display them independently of the other 2
c++ Write 3 Functions A( ), B( ) & C(int) - For A( ) use a Global counter, but for B( ) use a static counter within B( )
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am