algorithm/dimigo.goorm.io
연산자 - 연산자의 활용 예제4
m0nd2y
2018. 7. 5. 20:20
Practice Contents
0000년.00월.00일 형태도 날짜를 입력받아 0000년 00월 00일로 출력하는 프로그램을 작성하시오.
⋇ Please keep the input/output format well.
#include <stdio.h>
int main() {
int a,b,c;
scanf("%d.%d.%d",&a,&b,&c);
printf("%04d년 %02d월 %02d일",a,b,c);
}