Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int numOfPeople = Integer.valueOf(sc.nextLine());
- int bloodOFonePeople = Integer.valueOf(sc.nextLine());
- int bloodOfILIDAN = Integer.valueOf(sc.nextLine());
- int bloodOfPeople = numOfPeople*bloodOFonePeople;
- if (bloodOfILIDAN>bloodOfPeople){
- int peopleNOTprepared = bloodOfILIDAN-bloodOfPeople;
- System.out.print("You are not prepared! You need "+peopleNOTprepared+" more points.");
- } else {
- int defeatILIDAN = bloodOfPeople - bloodOfILIDAN;
- System.out.print("Illidan has been slain! You defeated him with "+defeatILIDAN+" points.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement