Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 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. namespace ConsoleApp1khiughol
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             int steps = int.Parse(Console.ReadLine());
  13.             int dancers = int.Parse(Console.ReadLine());
  14.             int days = int.Parse(Console.ReadLine());
  15.             double stepsOfDay = (steps / days)/steps;
  16.            
  17.            double  stepsPerDancer = stepsOfDay / dancers;
  18.             if (stepsPerDancer<=13) {
  19.                 Console.WriteLine($" Yes,they will succeed in that goal! {stepsPerDancer}%.");
  20.                   
  21.                 }
  22.             else
  23.             {
  24.                 Console.WriteLine($"No, They will not succeed in that goal! Required {stepsPerDancer}% steps to be learned per day.");
  25.             }
  26.             
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement