Guest User

Untitled

a guest
Feb 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1.   public static void main(String [] args) {
  2.       Scanner sc = new Scanner(System.in);
  3.       System.out.print("Number of sides: ");
  4.       MyDieTest d = new MyDieTest(sc.nextInt());
  5.       int total;
  6.       for(i = 0, i<=10, i++){
  7.           total = total + d.roll();
  8.       }
  9.       System.out.println("The sum is:"+total);
  10.   }
  11. }
Add Comment
Please, Sign In to add comment