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