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 Хореография
- {
- 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 stepsOfDay = Math.Ceiling(steps / days / (double)steps * 100);
- double StepsPerDancer = stepsOfDay / dancers;
- if (StepsPerDancer <= 13)
- {
- Console.WriteLine($"Yes, they will succeed in that goal! {StepsPerDancer:f2}%.");
- }
- else
- {
- 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