Sorry im new here.. i cant seem to get the function working
help?? arghCode:void calc(int num)
{
int inch, rem_inch, feet;
feet = inch/12;
rem_inch = inch % 12;
printf("%d inches = %d feet %d inches\n", inch, feet, rem_inch);
}
void main()
{
int i, inch;
for(i=0;i<5;i++)
{
printf("\nPlease Enter Inches:");
scanf("%d", &inch);
calc(inch);
}
}