Advertisement
Guest User

Untitled

a guest
May 29th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. using System;
  2.  
  3. namespace FiveDifferentNumbers
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int n = int.Parse(Console.ReadLine());
  10. int m = int.Parse(Console.ReadLine());
  11. int number = 0;
  12. int counter = 0;
  13. for (int row = n; row < m; row++)
  14. {
  15. for (number = n; number < m; number++)
  16. {
  17. if (number == m - 1 && counter >= 5)
  18. {
  19.  
  20. Console.Write($"{number + 1} ");
  21.  
  22. }
  23. else
  24. {
  25. Console.Write($"{number} ");
  26.  
  27. }
  28. counter++;
  29. }
  30. Console.WriteLine();
  31. }
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement