1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tems11 [23]
2 years ago
13

Write a C++ program that determines if an integer is a multiple of 7. The program should prompt the user to enter and integer, d

etermine if it is a multiple of 7 by using a given formula and output the result. This is not meant to be a menu driven program so one run of the program will only offer one input and one output.
Computers and Technology
1 answer:
Dima020 [189]2 years ago
3 0

Answer:

#include <iostream>  // Needed for input/output operation

int main()  // define the main program

{

   int userNumber = 0; // number storage for user input

   std::cout << "Please enter an integer: ";  // Ask user for number

   std::cin >> userNumber;  // Assumes user input is an integer

   if (userNumber % 7 != 0)  // Check to see if 7 divides user input

       std::cout << "\nYour number is not a multiple of 7.\n";

   else

       std::cout << "\nYour number is a multiple of 7.\n";

   return 0;  // End program

}

You might be interested in
Drivers should scan 10-12 secound down the road looking of potential hazards
Setler [38]
This statement is true.

Drivers should always scan the road ahead to check for any potential hazards so that they have enough time to safely avoid any dangerous situations. It is very important for a driver to be constantly scanning the road while driving to take in his or her surroundings.

Hope this answer helps! :)
8 0
3 years ago
Are you allowed to copy and paste answers on brainy to give answers to other people?
Zanzabum
I’m pretty sure you can; or u can also screenshot n send, which is what i usually doooo
7 0
2 years ago
Read 2 more answers
What is client server relationship is the basic form of what
stepan [7]

computer network is the answer                          

8 0
2 years ago
Read the following code carefully and do as directed: int main() { // Initialising starting number int num = 1; int n=7 // Outer
Wittaler [7]

Answer:

81

Explanation:

12734

4 0
3 years ago
Which software would you use to create a print design?
Contact [7]

Audacity and Reaper are audio software programs.

Dreamweaver is for websites.


Illustrator is used for printing brochures, cards etc.


The answer would be A. Illustrator.

7 0
3 years ago
Read 2 more answers
Other questions:
  • Write a function that takes an array of integers and its size as parameters and prints the two largest values in the array. In t
    5·1 answer
  • 4+4 act quick for brainliest
    10·2 answers
  • Through the use of a _____ system, information on prospective, current, and past customers is stored and analyzed for future pla
    15·1 answer
  • _____ is the management function that monitors the performance of the firm and makes improvements when necessary
    15·1 answer
  • What type of things can be marketed
    11·1 answer
  • Produce definition in computer
    9·2 answers
  • A total stranger is trolling Jack online. He’s offended and annoyed. How can Jack stop the troll in his or her tracks? (5 points
    10·2 answers
  • Es la actividad que posibilita comunicar gráficamente ideas, hechos y valores procesados y sintetizados en términos de forma y c
    11·1 answer
  • Which of these words is used to begin a conditional statement?<br> when<br> input<br> if<br> until
    8·1 answer
  • Which of the following number is divisible by 3? (340 , 432 , 113)​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!