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 TestSimpleMethods
- {
- class SimpleMethods
- {
- static void Main()
- {
- Numbers();
- }
- public static int[] Numbers()
- {
- int num = 3;
- int[] n = new int[num];
- for (int i = 0; i < n.Length; i++)
- {
- n[i] = int.Parse(Console.ReadLine());
- }
- Console.WriteLine("{0}",n.Max());
- return n;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment