TOPIC

Alguien sabe por que da Runtime Error

Jarlin Andres asked 2 years ago

import java.util.*; public class Main { public static void main(String [] args){ Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int num1=sc.nextInt(); int num2=sc.nextInt(); int resta=Math.abs(num1-num2); System.out.println(resta); } }

}

This topic was solved and cannot recieve new replies.