Advertisement
kzborisov

Untitled

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