Define function to calculate the ounces and cups
#include <stdio.h> int ounces_to_cups(int o); int main(void) { int ounces; int cups; printf("Enter ounces: "); scanf("%d", &ounces); cups = ounces_to_cups(ounces); printf("%d cups", cups); return 0; } int ounces_to_cups(int o) { return o / 8; }