This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); |