Driver program
public static void Main ( ) { int W = 100 ; int [ ] val = { 10 , 30 , 20 } ; int [ ] wt = { 5 , 10 , 15 } ; int n = val . Length ; Console . WriteLine ( unboundedKnapsack ( W , n , val , wt ) ) ; } }