Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Arrays_Exercise
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int c = int.Parse(Console.ReadLine());
- int minNumber = GetMin(a, b);
- int smallerFinal = GetMin(minNumber, c);
- Console.WriteLine(smallerFinal);
- }
- private static int GetMin(int a, int b)
- {
- if (a < b)
- {
- return a;
- } else
- {
- return b;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement