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)
- {
- int speed = int.Parse(Console.ReadLine());
- int dancer = int.Parse(Console.ReadLine());
- int DayOfStudy = int.Parse(Console.ReadLine());
- double Pspeed = (speed / DayOfStudy) / speed;
- double Pdancer = Pspeed / dancer;
- if (Pspeed<=13)
- {
- Console.WriteLine("Yes, they will secceed in that goal! {0:f0} %", Pspeed);
- }
- else
- {
- Console.WriteLine("No, they will not succeed in that goal! Required {0:f0} % steps to be learned per day.", Pdancer);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment