Advertisement
spasnikolov131

Untitled

Dec 15th, 2021
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Middle_Characters
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int first = int.Parse(Console.ReadLine());
  10. int second = int.Parse(Console.ReadLine());
  11. int third = int.Parse(Console.ReadLine());
  12.  
  13. int min = GetMinValue(first, second, third);
  14. }
  15.  
  16. private static int GetMinValue(int first, int second, int third)
  17. {
  18. int min = Math.Min(Math.Min(first, second), third);
  19. return min;
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement