Hi I am working on a program that is supposed to have the user enter three number between -5 and +5. then the program puts the numbers in order by least to greatest order. here is what i have so far. thanks for any help!
#include "stdafx.h"
#include <iostream.h>
int a;
int b;
int c;
int main(int argc, char* argv[])
{
cout<<"Enter in Three Numbers between -5 and +5\n";
cin>>a;
cin>>b;
cin>>c;
if(a < -5 || a >= +6)
{
cout<<"Numbers do not fall within range\n";
return 0;
}
if(b < -5 || b >= +6)
{
cout<<"Numbers do not fall within range\n";
return 0;
}
if(c < -5 || c >= +6)
{
cout<<"Numbers do not fall within range\n";
return 0;
}
if(a<b && a<c)
if(b>a && b<c)
if(c>a && c>b)
if(b<a && b<c)
if(c>a && c<b)
if(a>b && a>c)
cout<<a<<b;
return 0;
}