Advertisement
fbinnzhivko

01.00 Зеленчукова борса

May 3rd, 2016
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. using System;
  2. class Program
  3. {
  4.     static void Main()
  5.     {
  6.         double a1 = double.Parse(Console.ReadLine());
  7.         double a2 = double.Parse(Console.ReadLine());
  8.         double a3 = double.Parse(Console.ReadLine());
  9.         double a4 = double.Parse(Console.ReadLine());
  10.  
  11.         double total = (a1 * a3 + a2 * a4) / (double)1.94;
  12.         Console.WriteLine($"{total}");
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement