Computer Science, asked by ojongpridetabeebob, 2 months ago

write an algorithm to read 2 numbers and display the value of the highest and lowest

Answers

Answered by lilawantirajput23
1

hello

Explanation:

Syntax will change depending on what language you’re using. But something to the extent of

int a = 1;

int b = 2;

int small;

if (a < b){

small = a;

}

else if (b < a){

small = b;

}

You could do just an else on the second part, but that would do if b < a or if b = a, which of course is not less than.

make as brainllist

dani

Similar questions