I would like to ask if what is wrong in my c program. I am a college freshmen, and we have a project and it is to make a program that could be useful in our course, that is why I chose the calorimetry topic. I am not good in programming so hope somebody could help me.. Below is my code. Thank you in advance
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
void shc();
void main(){
int c=0;
do{
printf("\n----------------------\n\nEnter-1 for Quantity of Heat\nEnter-2 for Mass of Substance\nEnter-3 to Specific Heat Capacity of Material\nEnter-4 for Change in Temperature\n\nEnter-5 to exit\n");
scanf("%d",&c);
switch(c){
case 1:qoh();
break;
case 2:mos();
break;
case 3:shcm();
break;
case 4:cit();
break;
case 5:exit(0);
break;
}
}while(!(c==5));
void qoh(){
int mos, shcm, cit, qoh;
printf("Enter Mass of Substance: ");
scanf("%d",&mos);
printf("Specific Heat Capacity of Material: ");
scanf("%s", &shcm);
printf("Change in Temperature: ");
scanf("%d",&cit);
qoh=(mos*shcm*cit);
printf("Quantity of Heat: %d",qoh);
}
void mos(){
int mos, shcm, cit, qoh;
printf("Enter Quantity of Heat: ");
scanf("%d",&qoh);
printf("Specific Heat Capacity of Material: ");
scanf("%s", &shcm);
printf("Change in Temperature: ");
scanf("%d",&cit);
mos=qoh/(shcm*cit);
printf("Mass of Substance: %d",mos);
}
void cit(){
int mos, shcm, cit, qoh;
printf("Enter Mass of Substance: ");
scanf("%d",&mos);
printf("Specific Heat Capacity of Material: ");
scanf("%s", &shcm);
printf("Enter Quantity of Heat: ");
scanf("%d",&qoh);
cit=qoh/(mos*shcm);
printf("Quantity of Heat: %d",qoh);
}
}