Module: (Java) Alt Programlar: Prosedürler ve İşlevler - 2


Problem

4/11

Bir sayının bölen sayısı

Problem

Bir doğal sayının bölen sayısını veren bir fonksiyon yazınız
Örnekler
# Girdi Çıktı
1 6 4
Write the program below
public static void main(String[] args) {
   Scanner in = new Scanner(System.in);
   int n;
   n = in.nextInt();
   System.out.println(numberOfDivisors(n));
  }  
} 

     

Program check result

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