Hey Guys and Gals,I'm writing a program to find the highest and lowest of 5 integers.I think i have the algorithm almost right but it doesn't work.I think its something simple.......as usual.........
include <iostream.h>
include <conio.h>
int main ()
{
double total=0,num1,num2,num3,num4,num5,high,low;
cout<<please enter number;
cin>>num1;
cout<<please enter number;
cin>>num2;
cout<<please enter number;
cin>>num3;
cout<<please enter number;
cin>>num4;
cout<<please enter number;
cin>>num5;
high=num1
if (num1>high) high=num1;
else if (num2>high)
{
high=num2;
}