Advertisement
Guest User

Untitled

a guest
Jul 13th, 2016
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 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 _11Increasing4Numbers
  8. {
  9. class ProIncreasing4Numbersgram
  10. {
  11. static void Main(string[] args)
  12. {
  13. int a = int.Parse(Console.ReadLine());
  14. int b = int.Parse(Console.ReadLine());
  15. for (int first = a; first <= b; first++)
  16. {
  17. for (int second = a; second <= b; second++)
  18. {
  19. for (int third = a; third <= b; third++)
  20. {
  21. for (int fourth = a; fourth <= b; fourth++)
  22. {
  23. if (first < second && second < third && third < fourth)
  24. {
  25. Console.WriteLine("{0} {1} {2} {3}", first, second, third, fourth);
  26. }
  27. }
  28. }
  29. }
  30. }
  31. if (b - a < 3)
  32. {
  33. Console.WriteLine("No");
  34. }
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement