public class naloga_3 {
public static void main
(String[] args
) { int stevilo, stotice_5 = 0;
for(int i = 0; i < 1000; i++) {
stevilo =
(int)Math.
round(Math.
random() *
2000) -
1000;
if((stevilo / 500) % 2 == 1) {
stotice_5++;
}
}
System.
out.
println("Stevil, ki imajo pri stoticah stevilo 5 je: " + stotice_5
);
}
}