6677

Untitled

Nov 6th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace Methods
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)//Main method
  11.         {
  12.             int number = returnFive();
  13.             Console.WriteLine(number.ToString());
  14.             addFour(5);
  15.  
  16.             Console.ReadKey();//Hold the console window open.
  17.         }
  18.  
  19.         static int returnFive()
  20.         {
  21.             return 5;
  22.         }
  23.  
  24.         static void addFour(int number)
  25.         {
  26.             number += 4;
  27.             Console.WriteLine(number.ToString());
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment