Advertisement
Qrist

21

Mar 30th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Unknown
  4. {
  5.     class Program
  6.     {
  7.  
  8.         static void Main(string[] args)
  9.         {
  10.             int first = int.Parse(Console.ReadLine());
  11.             int second = int.Parse(Console.ReadLine());
  12.             int third = int.Parse(Console.ReadLine());
  13.             int forth = int.Parse(Console.ReadLine());
  14.             int sum = first + second;
  15.             sum /= third;
  16.             sum *= forth;
  17.             Console.WriteLine(sum);
  18.            
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement