simonakancheva

Untitled

Apr 4th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Choreography
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int speed = int.Parse(Console.ReadLine());
  14.             int dancer = int.Parse(Console.ReadLine());
  15.             int DayOfStudy = int.Parse(Console.ReadLine());
  16.  
  17.             double Pspeed = (speed / DayOfStudy) / speed;
  18.             double Pdancer = Pspeed / dancer;
  19.  
  20.             if (Pspeed<=13)
  21.             {
  22.                 Console.WriteLine("Yes, they will secceed in that goal! {0:f0} %", Pspeed);
  23.             }
  24.             else
  25.             {
  26.                 Console.WriteLine("No, they will not succeed in that goal! Required {0:f0} % steps to be learned per day.", Pdancer);
  27.             }
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment