Commits

Jason Scheirer committed cfba86d

Print how many pounds to keep in case of emergency

  • Participants
  • Parent commits 8f532b3

Comments (0)

Files changed (1)

File problem121.go

 			//fmt.Printf("Here's a useless item: %v\n", item)
 		}
 	}
-	fmt.Printf("Et voila. %v chance of winning.\n", win_probability * 100.)
+	fmt.Printf("Et voila. %v chance of winning. Pack %v pounds.\n", win_probability * 100., 1. / win_probability)
 }