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 ConsoleApp39
- {
- class Program
- {
- static void Main(string[] args)
- {
- var n = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 19, 23, 45, 70 };
- int biggestNum = 0;
- for (var i = 0; i < n.Length; i++)
- {
- if (biggestNum < n[i])
- {
- biggestNum = n[i];
- }
- }
- Console.WriteLine(biggestNum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement