Pretorianbg

Choreography

Sep 23rd, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Choreography
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. double steps = double.Parse(Console.ReadLine());
  14. double dancers = double.Parse(Console.ReadLine());
  15. double days = double.Parse(Console.ReadLine());
  16.  
  17. double percentperday = ((steps/days)/steps)*100;
  18. percentperday = Math.Ceiling(percentperday);
  19. double percentperdancer = percentperday / dancers;
  20.  
  21.  
  22. if (percentperday<=13)
  23. {
  24. Console.WriteLine($"Yes, they will succeed in that goal! {percentperdancer:F2}%.");
  25.  
  26. }
  27. else
  28. {
  29. Console.WriteLine($"No, They will not succeed in that goal! Required {percentperdancer:F2}% steps to be learned per day.");
  30. }
  31.  
  32.  
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment