Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace עמוד_151_תרגיל_37
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. int numK, numN, count = 0, countTemp = 0;
  13. Console.WriteLine("Enter num:");
  14. numN = int.Parse(Console.ReadLine());
  15. while (numN != 0)
  16. {
  17. count++;
  18. numK = numN;
  19. Console.WriteLine("Enter num:");
  20. numN = int.Parse(Console.ReadLine());
  21. if (numN < numK)
  22. countTemp++;
  23. }
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement