Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 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 Increasing_elements
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. var size=int.Parse(Console.ReadLine());
  14. int [] n=new int [size+2];
  15. var br = 0;
  16. for (int i = 0; i <size; i++)
  17. {
  18. n[i] = int.Parse(Console.ReadLine());
  19. if(n[i]<n[i+1])
  20. { br++; }
  21. else { continue; }
  22.  
  23. }
  24. Console.WriteLine(br);
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement