Guest User

Untitled

a guest
Feb 18th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. package kostka;
  2.  
  3. public class Kostka {
  4. public static void main(String[] args) {
  5. int score = 0;
  6. int roll = 1;
  7. score = score + roll;
  8. for (roll = 1; roll<=2; roll++){
  9. int i =(int) Math.floor(Math.random() * 6 + 1);
  10. System.out.println(i);
  11. };
  12. System.out.println(score);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment