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