创建打印出Body Mass Index的代码
printf("What is your height in inches?\n");
scanf("%d", height);
printf("What is your weight in pounds?\n");
scanf("%d", weight);
Run Code Online (Sandbox Code Playgroud)
我有高度和重量初始化为int height,int weight但程序不让我运行它,因为它说格式是int*两scanf行上的类型.让这个程序运行我做错了什么?
c ×1