Aliendreamer

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

Jan 23rd, 2017
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 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 borsa
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double a=double.Parse(Console.ReadLine());
  14.             double b=double.Parse(Console.ReadLine());
  15.             double c=double.Parse(Console.ReadLine());
  16.             double d=double.Parse(Console.ReadLine());
  17.             double f = a * c;
  18.             double g = b * d;
  19.             double eur = 1.94;
  20.             Console.WriteLine("обща сума={0}", Math.Abs((f + g)/eur));
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment