Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Methods
- {
- class Program
- {
- static void Main(string[] args)//Main method
- {
- int number = returnFive();
- Console.WriteLine(number.ToString());
- addFour(5);
- Console.ReadKey();//Hold the console window open.
- }
- static int returnFive()
- {
- return 5;
- }
- static void addFour(int number)
- {
- number += 4;
- Console.WriteLine(number.ToString());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment