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_elements
- {
- class Program
- {
- static void Main(string[] args)
- {
- var size=int.Parse(Console.ReadLine());
- int [] n=new int [size+2];
- var br = 0;
- for (int i = 0; i <size; i++)
- {
- n[i] = int.Parse(Console.ReadLine());
- if(n[i]<n[i+1])
- { br++; }
- else { continue; }
- }
- Console.WriteLine(br);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement