TOPIC

Run time Error ???

Nir Rifat asked 2 years ago

Why I'm getting Runtime Error in this ??? What is the problem ???

import java.util.Scanner;

/*

  • @author nirrifat */ public class Main { public static void main(String[] args) { Scanner in = new Scanner (System.in); int x= in.nextInt(); for (int i = 0; i < x; i++) { System.out.println(in.nextInt()+in.nextInt()); } } }

This topic was solved and cannot recieve new replies.