/**Taking input using BufferedReader class in java*/
//Sum.java
//note:Remove the double backslash before import and both int statements before compilation
//import java.io.*;
public class Sum
{
public static void main(String [] args)throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// int a = Integer.parseInt(br.readLine());
// int b = Integer.parseInt(br.readLine());
System.out.println("Sum of" +a+"and" +b+ "="+(a+b) );
}
}
//Sum.java
//note:Remove the double backslash before import and both int statements before compilation
//import java.io.*;
public class Sum
{
public static void main(String [] args)throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// int a = Integer.parseInt(br.readLine());
// int b = Integer.parseInt(br.readLine());
System.out.println("Sum of" +a+"and" +b+ "="+(a+b) );
}
}
Comments
Post a Comment