Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace AddAndSubtract
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n1 = int.Parse(Console.ReadLine());
- int n2 = int.Parse(Console.ReadLine());
- int n3 = int.Parse(Console.ReadLine());
- int sum = Sum(n1, n2);
- Console.WriteLine(Sum(n1, n2));
- Console.WriteLine(Subtract(sum, n3));
- }
- static int Sum(int n1, int n2)
- {
- return n1 + n2;
- }
- static int Subtract(int sum, int n3)
- {
- return sum -= n3;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement