#include <stdio.h>
int main()
{
printf("how old are you? ");
int age = 0;
scanf("%d", age);
printf("how much does your daily habit cost per day? \n");
int daily = 0;
scanf("%d", daily);
double thisyear = daily * 365;
printf("\n");
printf("this year your habit will cost you: %.2f", thisyear);
return 0;
}
这是我的学校计划,当我写这篇文章时,我试图让用户 1,给出他们的年龄和 2,他们的日常生活费用。但是当我运行它时我的程序会崩溃