Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String [] args) {
- Scanner sc = new Scanner(System.in);
- System.out.print("Number of sides: ");
- MyDieTest d = new MyDieTest(sc.nextInt());
- int total;
- for(i = 0, i<=10, i++){
- total = total + d.roll();
- }
- System.out.println("The sum is:"+total);
- }
- }
Add Comment
Please, Sign In to add comment