Module: Alt programlar: prosedürler ve işlevler - 1


Problem

10/11

Bir sayının tüm bölenleri

Problem

N 'nin tüm bölenlerini tek bir satıra yazdıran bir prosedür yazın boşlukla ayrılmış.
Örnek.
Giriş Çıktı
10 1 2 5 10
1
using System;  
2
class Program {  
3
    static void printDivisors(int n) {  
4
5
6
7
8
9
10
11
    }  
12
    static void Main() {  
13
        int n = Convert.ToInt32(Console.ReadLine());  
14
        printDivisors(n);  
15
    }  
16
}  
17


                                                   

     

Program check result

To check the solution of the problem, you need to register or log in!