3.3 IF statement

xiaoxiao2021-03-06  56

Solve problems with IF statements

// sortinput.java - sort three Numbers import Tio. *; // use the package TiO class sortinput {public static void main (string [] args) {Int A, B, C, T; system.out.println (" TYPE Three Integers: "); a = console.in.readint (); b = console.in.readint (); c = console.in.readint (); if (a> b) {t = a; a = B; b = T;} if (b> c) {t = b; b = C; c = t;} if (a> b) {t = a; a = b; b = t;} system.out .print ("The Sorted Order IS:"); System.out.Println (A "," B "," C);}}

There is nothing to say ...

转载请注明原文地址:https://www.9cbs.com/read-83496.html

New Post(0)