0
Premitive operator program::please i need your help my sample output is same as they gave me but it still doesn't past the case
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner read = new Scanner(System.in); int distance = read.nextInt(); //complete the code distance = 4221; int kilo= distance /1000; int metre= 4221 % 1000; System .out.println (kilo ); System .out.println (metre ); } }
1 ответ