The following Code should read the first and the second number of the student ID then print
Fantastic news! We've Found the answer you've been seeking!
Question:
Note:
1.The correct code should be tested using your first two numbers of your student ID.
2.Your answer should have the code as text as well as the screenshot of the program output (using your own student ID) as a part of your answer. Otherwise, zero marks will be awarded.
import java.util.Scanner;
public class Main {
public static void main(String[] Strings) {
Scanner input = new Scanner(System.in);
System.out.println("Enter the first number of your student ID: ");
int number1 =input.nextInt();
Systm.out.println("Enter the second number of your student ID: ");
int number2 =input.nextInt();
System.out.println("The sum of two two numbers is " + number1+number2);
System.out.println("The sum devided by Zero is: " + (number1+number2)/0);
}
}
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date: