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 _07.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 totalSteps = (steps / days) / steps;
- double totalStepsPerDancer = totalSteps / dancers;
- if (totalSteps <= 13)
- {
- Console.WriteLine("Yes, they will succeed in that goal! {0:F2}%.", Math.Ceiling(totalStepsPerDancer));
- }
- else {
- Console.WriteLine("No, they will not succeed in that goal! Required {0:F2}% steps to be learned per day.", Math.Ceiling(totalStepsPerDancer));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement