Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Dzielniki(int Liczba)
- {
- Console.Write(+Liczba + " : ");
- for (int i = 1; i < Liczba; i++)
- {
- if (Liczba % i == 0) Console.Write(" , " + i);
- }
- }
- static void Main(string[] args)
- {
- int x = 10;
- Dzielniki(x);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement