Advertisement
NadyaMisheva

ВЛОЖЕН ЦИКЪЛ

Nov 17th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     public static void Main()
  6.     {
  7.        
  8.         for (int a = 0; a <= 9; a++)
  9.         {
  10.             for(int b = 0; b <= 9; b++)
  11.             {
  12.                  for(int c = 0; c <= 9; c++)
  13.                  {
  14.                   for( int d = 0; d <= 9; d++)
  15.                   {
  16.                        Console.WriteLine("{0}{1}{2}{3}",a,b,c,d);
  17.                   }
  18.                      }
  19.             }
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement