Question: using java, Do not use arrays or Strings! Task 2 October 12, 2022 Write a program which reads three integers (say, a, b and c),
using java, Do not use arrays or Strings!

Task 2 October 12, 2022 Write a program which reads three integers (say, a, b and c), then prints these three numbers System.out.println (a +""+b+""+ c); and then rearranges the values in these variables in such a way that a contains the smallest of the three numbers, b the middle one, and c- the largest. Print again System.out.println (a + " " + b + " " + c); and you shoud see the same three numbers, but in ascending order. Any two (or all three) numbers may be equal. Do not use arrays or Strings!
Step by Step Solution
There are 3 Steps involved in it
import javautilScanner public class RearrangeNum public ... View full answer
Get step-by-step solutions from verified subject matter experts
