I'm trying to pass in a value of 3 into the function. Pls help.
http://img14.imageshack.us/img14/1778/83284975.png
Uploaded with ImageShack.us
Code:#include<stdio.h> double Total_Fee(double StudentFee); void main() { double StudentFee[2][1]; double total; int i,j; for(i=0;i<2;i++) { for(j=0;j<1;j++) { printf("Enter number>"); scanf("%lf",&StudentFee[i][j]); } } total=Total_Fee(StudentFee[i][j]); printf("%0.2lf\n",total); } double Total_Fee(double StudentFee) { double total=0; int i; for(i=0;i<2;i++) total+=StudentFee; return total; }