You can only do this if the two numbers won't be equal:
if(a > b)
return a;
else
return b;
yes
largest number a,b,c,d
Square biggest prime factor and divide original number by result. Does NOT work for some numbers, eg. 1600/24 etc.
Find your own answers....sucks mahn
int max (int a, int b) { return a>b?a:b; }
Answers down there. range: add the numbers all up and divide how many numbers you have. meadian: put all the numbers in order from smallest to biggest, then find the one in the middle. mean: the biggest minus the smallest. HOPE YOU GET AN A+!!! *************************************************______________________
Find the biggest common factor and divide it by both numbers
you take the biggest number and subtract it by the smallest number.
program to find maximum of two numbers using pointers
arg_cnt=$# arg_list=$* biggest=$1 if [ $arg_cnt -eq 0 ]; then echo "$RF there should be minimum 1 argument" exit 1 fi for each_arg in $arg_list do if [ $each_arg -gt $biggest ]; then biggest=$each_arg fi done echo " Biggest number is : $biggest \n" exit 0
Take the biggest number and subtract it by the smallest number
The smallest is 0o0'0'' and the largest is 180o0'0''