Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 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 ConsoleApp1
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int steps = int.Parse(Console.ReadLine());
  14. int dancers = int.Parse(Console.ReadLine());
  15. int daysForStudy = int.Parse(Console.ReadLine());
  16.  
  17. int percentStepsForADay = (int)Math.Ceiling((double)(steps / daysForStudy) / steps);
  18.  
  19.  
  20. double percentStepsForDancer = (percentStepsForADay / dancers);
  21.  
  22.  
  23. if (percentStepsForADay <= 13)
  24. {
  25. Console.WriteLine($"Yes, they will succeed in that goal! {0:F2}%.", percentStepsForDancer);
  26. }
  27. else if (percentStepsForADay > 13)
  28. {
  29. Console.WriteLine($"No, They will not succeed in that goal! Required {0:F2}% steps to be learned per day.", percentStepsForDancer);
  30. }
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement