Skip to content

Instantly share code, notes, and snippets.

View 25061412-del's full-sized avatar

Ouyang Jiejun 25061412-del

  • Joined Oct 14, 2025
View GitHub Profile
import java.util.Scanner;
public class assignment1 {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("Please enter the first multiplier");
double num1=input.nextDouble();
System.out.println("Please enter the second multiplier");
double num2=input.nextDouble();
double accumulate=num1*num2;
System.out.println("The product is "+accumulate);