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
Social Sciences,
2 months ago
Computer Science,
2 months ago
Biology,
2 months ago
Social Sciences,
5 months ago
English,
5 months ago
Chemistry,
10 months ago
Physics,
10 months ago