Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Choreography
- {
- class Program
- {
- static void Main(string[] args)
- {
- double steps = double.Parse(Console.ReadLine());
- int dancers = int.Parse(Console.ReadLine());
- int daysStudy = int.Parse(Console.ReadLine());
- double totalPerc = Math.Ceiling(steps / daysStudy / steps * 100);
- double stepsEveryDancer = totalPerc / dancers;
- if (totalPerc <= 13)
- {
- Console.WriteLine($"Yes, they will succeed in that goal! {stepsEveryDancer:f2}%.");
- }
- else if (totalPerc > 13)
- {
- Console.WriteLine($"No, they will not succeed in that goal! Required {stepsEveryDancer:f2}% steps to be learned per day.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement