Advertisement
dinko_dt

Untitled

Nov 26th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Numerics;
  4.  
  5. namespace NestedLoops
  6. {
  7. class Program
  8. {
  9. static void Main()
  10. {
  11.  
  12. int counter = 0;
  13.  
  14. for (int i = 1; i <= 10; i++)
  15. {
  16. for (int j = 1; j <= 10; j++)
  17. {
  18.  
  19. if (i % j == 0)
  20. {
  21. counter++;
  22.  
  23. Console.WriteLine($"{counter:D2}. --{i}divide with {j}");
  24.  
  25. }
  26. }
  27. }
  28.  
  29.  
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement