Advertisement
Guest User

Untitled

a guest
Feb 17th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Choreography
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. double steps = double.Parse(Console.ReadLine());
  10. int dancers = int.Parse(Console.ReadLine());
  11. int daysStudy = int.Parse(Console.ReadLine());
  12.  
  13. double totalPerc = Math.Ceiling(steps / daysStudy / steps * 100);
  14. double stepsEveryDancer = totalPerc / dancers;
  15. if (totalPerc <= 13)
  16. {
  17. Console.WriteLine($"Yes, they will succeed in that goal! {stepsEveryDancer:f2}%.");
  18. }
  19. else if (totalPerc > 13)
  20. {
  21. Console.WriteLine($"No, they will not succeed in that goal! Required {stepsEveryDancer:f2}% steps to be learned per day.");
  22. }
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement