TOPIC

Run time Error it says..

Tahsin Amin asked 1 year ago

import java.util.Scanner;

public class Main {

public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    while (sc.hasNextLine()) {
        String splitA[] = sc.nextLine().split(" ");
        int i = Integer.parseInt(splitA[0]);
        int j = Integer.parseInt(splitA[1]);
        System.out.println(Math.abs(i - j));
    }
}

}

Remember not post solutions. Your post may be reviewed by our moderators.