Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. { public static void main (String[] args) {
  2. for (int i=0; i<20; i++)
  3. {
  4. int zufallszahl = (int) ((Math.random()*100)+1);
  5.  
  6. if (zufallszahl<50){
  7. System.out.println("Zahl;Wurf nr. "+i);
  8. }
  9. if (zufallszahl>50) {
  10. System.out.println("Kopf,Wurf nr. "+i);
  11. }
  12. if (zufallszahl==50) {
  13. System.out.println("nais Kante,Wurf nr."+i);
  14. }
  15. System.out.println(" ");
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement