Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- level09
- /*
- */
- import java.util.*;
- public class Solution
- {
- public static void main(String[] args)
- {
- Scanner input = new Scanner(System.in);
- int x = 1;
- do
- {
- try {
- System.out.println("Enter first num: ");
- int n1 = input.nextInt();
- System.out.println("Enter second num: ");
- int n2 = input.nextInt();
- int sum = n1/n2;
- System.out.println("The sum is: " + sum);
- x=2;
- }
- catch (Exception e) {
- System.out.println("Ты серьезно?"+"\n"+"Не будь хуйлом"+"\n"+"Давай еще разок, Володя");
- }
- } while (x==1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment