wap to accept 2 numbers from the user and calculate their sum
Answers
Answered by
1
Answer:
class sum
{
private static BufferedReader stdin= new BufferedReader(new InputStreamReader(Systen.in));
public static void main (String args[])
{
int a,b;
System.out.println("Enter any two numbers");
a= Integer.parseInt(stdin.readLine());
b=Integer.parseInt(stdin.readLine());
sum=a+b;
System.out.println("Sum of the numbers="+sum);
}
}
Explanation:
Similar questions