Advertisement
Stanislavgr

Choreography

Mar 26th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 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 _07.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 totalSteps = (steps / days) / steps;
  18. double totalStepsPerDancer = totalSteps / dancers;
  19.  
  20. if (totalSteps <= 13)
  21. {
  22. Console.WriteLine("Yes, they will succeed in that goal! {0:F2}%.", Math.Ceiling(totalStepsPerDancer));
  23. }
  24. else {
  25. Console.WriteLine("No, they will not succeed in that goal! Required {0:F2}% steps to be learned per day.", Math.Ceiling(totalStepsPerDancer));
  26. }
  27.  
  28.  
  29.  
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement