Advertisement
Spocoman

01. Integer Operations

Jan 17th, 2022
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. using System;
  2.  
  3. namespace IntegerOperations
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int firstNum = int.Parse(Console.ReadLine());
  10.             int secondNum = int.Parse(Console.ReadLine());
  11.             int thurdNum = int.Parse(Console.ReadLine());
  12.             int fourthNum = int.Parse(Console.ReadLine());
  13.             int sum = (firstNum + secondNum) / thurdNum * fourthNum;
  14.             Console.WriteLine(sum);
  15.         }
  16.     }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement