algorithm/dimigo.goorm.io
연산자 - 연산자의 활용 예제1
m0nd2y
2018. 7. 5. 20:13
Practice Contents
태어난 연도를 입력받아 나이를 출력하는 프로그램을 작성하시오.
⋇ Please keep the input/output format well.
#include <stdio.h>
int main() {
int year, age;
scanf("%d", &year);
printf("%d", 2019-year);
return 0;
}