YavorGrancharov

Hornet_Wings

Aug 9th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Hornet_Wings
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int flaps = int.Parse(Console.ReadLine());
  10.             double distance = double.Parse(Console.ReadLine());
  11.             int endurance = int.Parse(Console.ReadLine());
  12.  
  13.             double meters = (flaps / 1000) * distance;
  14.             long seconds = (flaps / 100) + ((flaps / endurance) * 5);
  15.             Console.WriteLine("{0:F2} m.", meters);
  16.             Console.WriteLine("{0} s.", seconds);
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment