Computer Science, asked by aryangamer99201, 5 months ago

Write an example to find num3 which is the sum of num1 and num2

Answers

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