You are on page 1of 1

import java.io; class add{ public static void main(string args[])throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.

in)); int a,b,sum; System.out.println("Enter two number:"); a = Integer.parseInt(reader.readline()); b = Integer.parseInt(reader.readline()); sum =a+b; System.out.println("The sum of two no. is;" +sum); } }

You might also like