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 ForLesson15
- {
- class Program
- {
- static void Main(string[] args)
- {
- int Aps = Convert.ToInt32(Console.ReadLine());
- int Bps = Convert.ToInt32(Console.ReadLine());
- int Cps = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine(Min(Aps, Bps, Cps));
- }
- public static int Min(int a, int b, int c)
- {
- if (a < b)
- {
- if (a < c)
- {
- return a;
- }
- else
- {
- return c;
- }
- }
- else
- {
- return b;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement