İçeriğe geç
Menüyü aç veya kapat
Ana Sayfa
Biz Kimiz?
Programlarımız
Doğum Günü
Paylaşımlar
İletişim
Ön Kayıt
Java Kod Atölyesi
Java Kod Atölyesi
›
Objects-1
›
mathRound
← previous
|
next →
Problem
Return (int) Math.round(x) for a double x.
Examples
mathRound(2.4) -> 2
mathRound(2.5) -> 3
Go
Compile and test (Ctrl+Enter)
public int mathRound(double x) { }
↑