By using this site, you agree to our Privacy Policy and our Terms of Use. Close

Ok, so there's yet another homework I'm unable to make, unlike the other ones I posted, I have not an idea how to do it.

So, I have to give 5 numbers, and I have to show the highest and lowest of them, but I'm forced to use one of these 3 commands:

while, do while or for (that's what we're studing now) help I don't know what to do.

EDIT: Just an example of stuff I use.

#include <iostream.h>

#include <conio.h>

int a,b,c,d,e;

void main()

{

cout<<"put first number: ";

cin>>a;

cout<<"put second number: ";

cin>>b;

cout<<"put third number: ";

cin>>c;

cout<<"put fourth number: ";

cin>>d;

cout<<"put fifth number: ";

cin>>e;

no idea

}