Write C Program Asks User Many Integers Would Like Enter Assume Enter Integer 1 Program Pr Q37047739

Write a C++ program that asks the user how many integers theywould like to enter. You can assume they will enter an integer>= 1. The program will then prompt the user to enter that manyintegers. After all the numbers have been entered, the programshould display the largest and smallest of those numbers (no, youcannot use arrays, or any other material we haven’t covered). Whenyou run your program it should match the following format:

How many integers would you like to enter?4Please enter 4 integers.-41052-7min: -7max: 105

The file must be named: minmax.cpp. and includedescriptive comments


Solution


#include <iostream>using namespace std;int main() {

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.