Computer Science, asked by riya9498, 4 months ago

Create a
a program which accept two
number from user and
display
their sum.​

Answers

Answered by manuprajapati519
0

Answer:

This is the answe for question.. :)

Explanation:

import java.util.Scanner;

public class sum

{

public static void main(String args [])

{

int a, b, sum;

Scanner in = new Scanner(System.in);

System.out.println("Input the first number");

a=in.nextInt();

System.out.println("Input the second number");

b=in.nextInt();

sum=a+b;

System.out.println("This is the sum of two numbers = "+sum);

}

}

Hey Dude, if you liked my answer please mark my answer as Brainliest and also follow for more

Thank You :)

Similar questions