Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.50 KB | None | 0 0
  1. for(int a = 0; a < 2 ; a++){
  2.         for(int b = 0; b < 3 ; b++){
  3.             for(int c = 0; c < 5; c++){
  4.                 for(int d = 0; d < 11 ; d++){
  5.                     for(int e = 0 ; e < 21; e++){
  6.                         for(int f = 0 ; f < 41 ; f++){
  7.                             for(int g = 0 ; g < 101 ; g++){
  8.                                 for(int h = 0 ; h < 201 ; h++){
  9.                                     if(a*Coins.p200 + b*Coins.p100 + c*Coins.p50 + d*Coins.p20 + e*Coins.p10 + f*Coins.p5 + g*Coins.p2 + h*Coins.p1 == 200){
  10.                                         possibilites += 1;
  11.                                     }
  12.                                 }
  13.                             }
  14.                         }
  15.                     }
  16.                 }
  17.             }
  18.         }
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement