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;
- using System.Threading.Tasks;
- namespace FunctionsOrMethodsTraining
- {
- class Program
- {
- static int a;
- static void GetMax(int number1, int number2)
- {
- if (a < number2)
- {
- a = number2;
- }
- }
- static void Main(string[] args)
- {
- int a = 3;
- int b = 5;
- GetMax(a, b);
- Console.WriteLine("The biggest number is {0}",a);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment