Advertisement
dragonbs

IntegerOperations

Feb 2nd, 2023
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. int first = int.Parse(Console.ReadLine());
  2. int second = int.Parse(Console.ReadLine());
  3. int third = int.Parse(Console.ReadLine());
  4. int fourth = int.Parse(Console.ReadLine());
  5.  
  6. int result = ((first + second) / third) * fourth;
  7.  
  8. Console.WriteLine(result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement