#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int high=0;
int low=0;
int number;
cout<<"Enter in the number"<<endl;
cin>>number;
high=number;
low=number;
for (int count=0;count<4;count++)
{
cout<<"Enter in the number"<<endl;
cin>>number;
if(number>high)
high=number;
if(number<low)
low=number;
}
cout<<"\nThe highest number is:"<<high;
cout<<"\nThe lowest number is:"<<low;


getch();
}

Why did you post the code here...???

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.