wiele skanów w programie powodującym awarię w c?
#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;
}
to jest mój program dla szkoły, kiedy to piszę, próbuję nakłonić użytkownika do 1, podać jego wiek i 2, dzienny koszt życia. jednak mój program ulegnie awarii, gdy go uruchomię