Saved Bookmarks
| 1. |
Write a program to find the quotidian of two numbers |
|
Answer» I think u mean quotient note- u have to import scanner for it HERE IS THA JAVA PROGRAM- Scanner SC = new Scanner(System.in); int FIRSTNUMBER = sc.nextInt; int secondNumber = sc.nextInt; int ans =0; if(secondNumber==0){ System.out.println("Denominator cannot be 0"); } ELSE{ ans = firstNumber/secondNumber; } System.out.println("Quotient of the GIVEN numbers is " + ans); |
|