Hello guys... I just wrote a short program that should work, but not working offcourse. I have a compiler error. please can you guys test it and tell me what the "excuse my french" is wrong here????![]()
Code:import java.util.Scanner; public class Product { public static void main(String args[]) { Scanner input = new Scanner(System.in); int num1, num2, num3, sum; System.out.print(" Please enter your first number: "); num1 = input.nextInt(); System.out.print(" Please enter your second number: "); num2 = input.nextInt(); System.out.print(" Please enter your third number: "); num3 = input.nextInt(); sum = num1 * num2 * num3; System.out.println(" The product of your three numbers is " + sum); } }


Reply With Quote


Bookmarks