Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.70K
1 Posted Topic
import java.util.Scanner; class Handling { public static int quotient(int a,int b) { return(a/b); } public static void main(String[] arg) { Scanner scanner=new Scanner(System.in); System.out.println(" enter value of a"); int a=scanner.nextInt(); System.out.println(" enter value of b"); int b=scanner.nextInt(); int result=quotient(a,b); System.out.println("\n result: a / b = " +result); try { result=quotient(a,b); …
The End.
javalearn