16源程序:#include "stdio.h"#include "math.h"#defineM 50main(){int i,j,n,m; float a[M]={0} ,max,sum=0,w[M],p[M]; printf("please get into the number of goods");scanf("%d",&n);
printf("please get into the weightw[] and price p[]:");for(i=0;i<n;i++)scanf("%f %f",&w,&p); for(i=0;i<n;i++
|