Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { public static void main (String[] args) {
- for (int i=0; i<20; i++)
- {
- int zufallszahl = (int) ((Math.random()*100)+1);
- if (zufallszahl<50){
- System.out.println("Zahl;Wurf nr. "+i);
- }
- if (zufallszahl>50) {
- System.out.println("Kopf,Wurf nr. "+i);
- }
- if (zufallszahl==50) {
- System.out.println("nais Kante,Wurf nr."+i);
- }
- System.out.println(" ");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement