Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pl.patrykk;
- import java.util.Random;
- public class Main {
- public static void main(String[] args) {
- Random random = new Random();
- int suma=0;
- int i=0;
- do{
- suma = suma + (random.nextInt(100 / 2)*2) + 2;
- i++;
- } while (i<100);
- System.out.println(suma);
- }
- }
Add Comment
Please, Sign In to add comment