Computer Science, asked by pthakre288, 10 months ago

wap to accept 2 numbers from the user and calculate their sum​

Answers

Answered by wwesheild100
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