BubaLazi

Exam1-HorentWnings

Aug 15th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 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 PreparingForExams
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int wingFlaps = int.Parse(Console.ReadLine());
  14.             double distance = double.Parse(Console.ReadLine());
  15.             int endurance = int.Parse(Console.ReadLine());
  16.  
  17.             double firstResult = (wingFlaps / 1000) * distance;
  18.             double seconds = wingFlaps / 100;
  19.             double q = (wingFlaps / endurance) * 5;
  20.             double secondResult = seconds + q;
  21.  
  22.             Console.WriteLine("{0:F2} m.", firstResult);
  23.             Console.WriteLine("{0:F2} s.", secondResult);
  24.  
  25.  
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment