Krasimir_Slavov

Untitled

Sep 22nd, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 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 countofSteps = double.Parse(Console.ReadLine());
  14. double dancers = double.Parse(Console.ReadLine());
  15. double daysForLearning = double.Parse(Console.ReadLine());
  16.  
  17. double stepsperDay = Math.Ceiling(1 * 100 / daysForLearning);
  18. double stepsforDancer = stepsperDay / dancers;
  19.  
  20. if (stepsperDay <= 13)
  21. {
  22. Console.WriteLine($"Yes, they will succeed in that goal! {stepsforDancer:F2}%.");
  23. }
  24. else
  25. {
  26. Console.WriteLine($"No, They will not succeed in that goal! Required {stepsforDancer:F2}% steps to be learned per day.");
  27. }
  28.  
  29.  
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment