Advertisement
Guest User

Choreography

a guest
Sep 18th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     public static void Main()
  6.     {
  7.         double broystapki = double.Parse(Console.ReadLine());
  8.         double broytancyori = double.Parse(Console.ReadLine());
  9.         double broydni = double.Parse(Console.ReadLine());
  10.         double stapkinaden2 = (broystapki/broydni)/broystapki;
  11.         double stapkinaden3 = stapkinaden2*100;
  12.         double procentstapkizavsekitancyor = stapkinaden3/broytancyori;
  13.         if (stapkinaden2 <= 0.13)
  14.         {
  15.             Console.WriteLine($"Yes, they will succeed in that goal! {procentstapkizavsekitancyor:f2}%.");
  16.         }
  17.         if (stapkinaden2 > 0.13)
  18.         {
  19.             Console.WriteLine($"No, They will not succeed in that goal! Required {procentstapkizavsekitancyor:f2}% steps to be learned per day.");
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement