Brock T.

asked • 03/08/22

C++ coding question

GoLakers!

Concepts tested: integer operations, selection statements

Write a program that:

 1) Reads in an integer from the console (do NOT print out any instructions/prompts for the user)

 2) Prints "Go" if the number is divisible by 3

 3) Prints "Lakers" if the number is divisible by 5

 4) Prints "GoLakers" if the number is divisible by 3 and 5

Code


#include <iostream>
using namespace std;
//Do not modify anything on or above the line below this
//YOUR_CODE_BELOW
#include <iostream>
using namespace std;
int main()
{
   //YOUR_CODE
}


1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.