Professional Documents
Culture Documents
Tamari Tateshvili, Homework 2
Tamari Tateshvili, Homework 2
Write a program, which asks You your year, month, and day of birth, and also the current
year, month and day and calculates,
how many days old are you?
#include "stdio.h"
struct month
{
int days;
};
struct year
{
int days;
};
int main()
{
month A[12];
year Y[22];
int birth_y, birth_m, birth_d, cur_y, cur_m, cur_d;
}
else Y[x].days = 0;
birth_y++;
}