
Java
import Java.io.BufferedReader;
public class Sum
{
static int i;
static int j;
static int sum;
public static void main(String args[])
{
try
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("enter first no.");
i=Integer.parseInt(br.readLine());
System.out.println("enter second no.");
j=Integer.parseInt(br.readLine());
sum=i+j;
System.out.println("sum of both no is:="+sum);
}
catch(Exception e)
{
System.out.println("Exception is:-"+e);
}
}
}
Copyright © 2026 eLLeNow.com All Rights Reserved.