21 lines
315 B
C
21 lines
315 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main() {
|
||
|
int yr; /* Year */
|
||
|
int byr; /* Birth Year */
|
||
|
|
||
|
printf("What is the current year: ");
|
||
|
scanf("%d", &yr);
|
||
|
|
||
|
printf("What is your year of birth: ");
|
||
|
scanf("%d", &byr);
|
||
|
|
||
|
printf("Current year: %d\n", yr);
|
||
|
printf("Your year of birth %d\n", byr);
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
|