I’m assuming that you want something like this printed out? Is that right? You just do “%d” in the spot that you want to display your integer and outside the quotes you put a comma and the integer you wanted to print.
// These are the calculations below in which I need to get outputted. So the I would like the total cost, PRO_C, to equal the PRO_H times the PRO_R.
PRO_C =(PRO_H * PRO_R);
PRE_C =(PRE_H * PRE_R);
PROD_C =(PROD_H * PROD_H);
TOT_C =(PRO_C + PRE_C + PROD_C);
printf("Production cost: %d", TOT_C);
0
solved How can I get printf to display a calculation the computer performed earlier?