|
|
back to boardJava import java.io.*; public class D { public static void main (String args []) throws Exception { BufferedReader d = new BufferedReader(new InputStreamReader(System.in)); String v = d.readLine(); BufferedReader e = new BufferedReader(new InputStreamReader(System.in)); String c = e.readLine(); try { int a = Integer.parseInt(v); int b = Integer.parseInt(c); System.out.print(a+" ");System.out.println(b); System.out.print(b-1+" ");System.out.print(a-1); } catch(Exception e1) {System.out.println("Error translating text to int");} System.out.println(); } } I do smth wrong? Re: Java Posted by Noob 6 Aug 2012 09:47 Read FAQ how to input numbers Read FAQ how to output answer Re: Java You used Java, that's what's wrong. |
|
|