Teo_Yanchev

IngtegerOperations - C# -Fundamentals

Aug 19th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. using System;
  2.  
  3. namespace DataTypes_and_Variable_Exercise
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int numOne = int.Parse(Console.ReadLine());
  10. int numTwo = int.Parse(Console.ReadLine());
  11. int numThree = int.Parse(Console.ReadLine());
  12. int numFour = int.Parse(Console.ReadLine());
  13.  
  14. int result = (numOne + numTwo) / numThree * numFour;
  15.  
  16. Console.WriteLine(result);
  17. }
  18. }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment