Write an example to find num3 which is the sum of num1 and num2
Answers
Answered by
0
Answer:
import java.util.Scanner;
public class exe
{
public static void main(String args[])
{
Scanner in = new Scanner(System.in);
int num1, num2, num3;
System.out.println("Input your two numbers");
num1=in.nextInt();
num2=in.nextInt();
num3=num1+num2;
System.out.println("num3 ="+num3);
}
}
Similar questions
Biology,
3 months ago
English,
3 months ago
Accountancy,
3 months ago
Social Sciences,
6 months ago
English,
6 months ago
Chemistry,
11 months ago
Physics,
11 months ago