Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Middle_Characters
- {
- class Program
- {
- static void Main(string[] args)
- {
- int first = int.Parse(Console.ReadLine());
- int second = int.Parse(Console.ReadLine());
- int third = int.Parse(Console.ReadLine());
- int min = GetMinValue(first, second, third);
- }
- private static int GetMinValue(int first, int second, int third)
- {
- int min = Math.Min(Math.Min(first, second), third);
- return min;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement