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