← Kursa Dön
💻

Recursive Üs Hesaplama

Kolay
100 puan · Java

📋 Talimatlar

Recursive bir power(base, exp) metodu yazın.

  • Math.pow KULLANMAYIN
  • Negatif üs desteklemeyin (sadece >= 0)
  • power(2, 10) = 1024
  • power(5, 0) = 1

🧪 Örnek Test Senaryoları

Girdi
(yok)
Beklenen Çıktı
1024
1
81
Main.java
✓ Çözüm yüklendi
puan

                    
Ln 1, Col 1 · JAVA · UTF-8
Wandbox