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)
- {
- int steps = int.Parse(Console.ReadLine());
- int dancers = int.Parse(Console.ReadLine());
- int days = int.Parse(Console.ReadLine());
- double dayStepPercent = Math.Ceiling((double)steps / days / steps * 100);
- double dancerStepPercent = dayStepPercent / dancers;
- if (dayStepPercent < 13)
- {
- Console.WriteLine($"Yes, they will succeed in that goal! {dancerStepPercent:f2}%.");
- }
- else
- {
- Console.WriteLine($"No, they will not succeed in that goal! Required {dancerStepPercent:f2}% steps to be learned per day.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement