NedyalkoKikov

MethodWithReturnType

May 26th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace TestSimpleMethods
  8. {
  9. class SimpleMethods
  10. {
  11. static void Main()
  12. {
  13. Numbers();
  14. }
  15. public static int[] Numbers()
  16. {
  17. int num = 3;
  18. int[] n = new int[num];
  19. for (int i = 0; i < n.Length; i++)
  20. {
  21. n[i] = int.Parse(Console.ReadLine());
  22. }
  23. Console.WriteLine("{0}",n.Max());
  24. return n;
  25. }
  26.  
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment