Code:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> //global variables //this program solicits height/weight data to calculate BMI void main() { int getHeight; } double getHeight(int height) { printf("Please enter your height in inches:"); scanf("%f", &height); getWeight; } //getHeight() double getWeight(int weight) { printf("Thank you. Now, please enter your weight in pounds:"); scanf("%f", &weight); calculateBMI; } float calculateBMI(int height, double weight) { float calculateBMI = double weight / height ^ 2; } void printBMI(float bmi) { } int main() { int height; height = getHeight(); double weight; weight = getWeight(); float bmi = 0; bmi = calculateBMI(height, weight); printBMI(bmi); } //main
The error: "expected an expression"
Location: at the text that I colored red ("double"):
What gives?