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 Increasing_Sequence_of_Elements
- {
- class Increasing_Sequence_of_Elements
- {
- static void Main(string[] args)
- {
- int[] number = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
- int count = 0;
- for (int i = 0; i < number.Length; i++)
- {
- count++;
- if (number[count] > number[i])
- {
- if (count == number.Length -1)
- {
- Console.WriteLine("Yes");
- return;
- }
- }
- else
- {
- Console.WriteLine("No");
- return;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement