Advertisement
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 ConsoleApp12
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine(MathMin(7, 5, 1));
- }
- public static int MathMin(int a, int b)
- {
- return a < b ? a : b;
- }
- public static int MathMin(int a, int b, int c)
- {
- return MathMin(a, b) == a ? MathMin(a,c) : MathMin(b,c);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement