Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- 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());
- Smallest(first, second, third);
- }
- public static void Smallest(int a,int b,int c)
- {
- if(a<b && a<c)
- {
- Console.WriteLine(a);
- }
- else if(b<a&&b<c)
- {
- Console.WriteLine(b);
- }
- else
- {
- Console.WriteLine(c);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement