Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- static void Main(){
- var a=3;
- var b=7;
- int n1=a, n2=n1+1, n3=n2+1, n4=n3+1;
- var count=0;
- for(; n1<=n2; n1++){
- for(; n2<=n3; n2++){
- for(;n3<=n4;n3++){
- for(;n4<=b;n4++){
- Console.WriteLine($"{n1} {n2} {n3} {n4}");
- count++;
- }
- }
- }
- }
- Console.WriteLine(count);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement