Advertisement
EndymionSpr

Untitled

Feb 15th, 2018
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 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 ConsoleApplication1
  8. {
  9. class Program
  10. {
  11.  
  12. static void Dzielniki(int Liczba)
  13. {
  14. Console.Write(+Liczba + " : ");
  15. for (int i = 1; i < Liczba; i++)
  16. {
  17. if (Liczba % i == 0) Console.Write(" , " + i);
  18. }
  19. }
  20.  
  21. static void Main(string[] args)
  22. {
  23.  
  24.  
  25. int x = 10;
  26. Dzielniki(x);
  27. Console.ReadKey();
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement