I'm trying to write a program in C++ that will tell the user to input 5 numbers and it'll display the largest number and whether it was the 1st, 2nd 3rd...so on entry. any help? this is what I have so far
#include "stdafx.h"
#include <iostream>
#include <math.h>
#include <iomanip>
using namespace std;
const int MAXNUMS = 5;
int count;
double num;
int _tmain()
{
cout << "This program will find the largest number of " << MAXNUMS << " numbers you enter.\n";
cout << endl;
count = 1;
while (count <= MAXNUMS)
{
cout << "\n Enter a number: ";
cin >> num;
cout << "The number you entered is " << num;
count++;
cout << endl;
return 0;