So fügen Sie zwei Zahlen in Java hinzu
import java.util.*;
public class Add
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter 2 numbers");
num1=sc.nextInt();
num2=sc.nextInt();
int sum=num1+num2;
System.out.println("The sum of the two numbers is: "+sum);
}
}
Nayan Kaushik