error message help
i have met a problem.a really simply program, which require user to enter 5 integers, and output the largest one and the smallest one by using IF statement,
I have created a statement like"
if(num1<num2><num3><num4><num5)
result=result +num1+"is the smallest number";
however when i compile it. it give me the error message shows below
operator >< cannot be applied to boolean,int
if(num1<num2><num3><num4><num5)
^
operator >< cannot be applied to boolean,int
if(num1<num2><num3><num4><num5)
^
I am only want to use the IF statement, nothing else. , so please help!
thx
Message was edited by:
ritchie_lin
Message was edited by:
ritchie_lin>

