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