SHARE
TWEET

Untitled

a guest Feb 14th, 2020 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Add_and_Sumbtract
  8. {
  9.     class AddAS
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int firstNum = int.Parse(Console.ReadLine()),
  14.                 secondNum = int.Parse(Console.ReadLine());
  15.             int sum = SumFirstAndSecondNumbs(firstNum, secondNum);
  16.  
  17.             int thirdNum = int.Parse(Console.ReadLine());
  18.  
  19.             Console.WriteLine($"{SubtractThirdNum(sum, thirdNum)}");
  20.  
  21.         }
  22.  
  23.         static int SumFirstAndSecondNumbs(int first, int second)
  24.         {
  25.             return first + second;
  26.         }
  27.        
  28.         static int SubtractThirdNum(int sum, int third)
  29.         {
  30.             return sum - third;
  31.  
  32.  
  33.         }
  34.     }
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top