learn-cpp
learn-cpp copied to clipboard
Codecademy | Learn C++
1 < 2 2 < 3 1 > 3 - **user - computer === 1** ? user - **user - computer === -1** ? computer - **user - computer ===...
If you pick scissors in the original and the program selects rock you win, and vice versa if you pick scissors and the program selects paper you lose. This should...
using namespace std
``` #include #include #include //logic of the program /*Scissors cuts Paper. Paper covers Rock. Rock crushes Lizard. Lizard poisons Spock. Spock smashes Scissors. Rock destroys Scissors. Scissors decapitate Lizard. Lizard...
`/* This program will play rock, paper, scissors, lizard, spock with you */ #include const char* int_to_pick(int a) { switch (a){ case 1: return "rock"; case 2: return "paper"; case...
So you just call the sqrt() one time.
Just thought could use something more accurate. I looked up "continue" statement for C++ and figured it could help replace the numbers with Fizz and Buzz.