Advertisement
SIRAKOV4444

Untitled

Mar 27th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Tuesday {
  4. public static void main(String[] args) {
  5.  
  6. Scanner scanner = new Scanner(System.in);
  7.  
  8. int steps = Integer.parseInt(scanner.nextLine());
  9. int dancers = Integer.parseInt(scanner.nextLine());
  10. int days = Integer.parseInt(scanner.nextLine());
  11.  
  12. double totalPR = (steps / days) / steps * 100;
  13. double stepsPERdancer = (totalPR) / dancers;
  14.  
  15. if(Math.ceil(stepsPERdancer)<13) {
  16. System.out.println("Yes,they will succeed in that goal!" + stepsPERdancer + "%.");
  17. }else{
  18. System.out.println("No,they will not succeed in that goal! Required"+(13-stepsPERdancer)+"%% steps to be learned per day.");
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement