View the step-by-step solution to:


A grocery store hired you to develop a simple application to read 2 random product prices and compare


need to help with a C++ program that does the following:

  • Asks the user to enter 3 integers
  • Obtains the numbers from the user
  • Prints the largest number and then the smallest of the numbers
  • If the numbers are equal, prints the message: "These numbers are equal."
  • Prints the sum, average, and product of the 3 numbers

Include the proper header and make sure you properly comment your program. Also, make sure you use proper coding conventions.

Top Answer

#include <iostream> using namespace std ; int a , b , c, sum,product; double average; int main () { cout <<... View the full answer

3 integer.JPG

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question