Write a C++ program that asks a user for an integer, reads it, and outputs one of
Fantastic news! We've Found the answer you've been seeking!
Question:
- Write a C++ program that asks a user for an integer, reads it, and outputs one of the following:
- • foo: if the integer is a multiple of 3
- • bar: if the integer is a multiple of 5
- • foobar: if the integer is a multiple of 3 and 5
- Otherwise, the program outputs the input integer itself.
Related Book For
Business and Administrative Communication
ISBN: 978-0073403182
10th edition
Authors: Kitty o. locker, Donna s. kienzler
Posted Date: