Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Tuesday {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int steps = Integer.parseInt(scanner.nextLine());
- int dancers = Integer.parseInt(scanner.nextLine());
- int days = Integer.parseInt(scanner.nextLine());
- double totalPR = (steps / days) / steps * 100;
- double stepsPERdancer = (totalPR) / dancers;
- if(Math.ceil(stepsPERdancer)<13) {
- System.out.println("Yes,they will succeed in that goal!" + stepsPERdancer + "%.");
- }else{
- System.out.println("No,they will not succeed in that goal! Required"+(13-stepsPERdancer)+"%% steps to be learned per day.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement