algorithm/dimigo.goorm.io
연산자 - 연산자의 활용 예제2
m0nd2y
2018. 7. 5. 20:15
Practice Contents
입력받은 두 자리 정수의 10의 자리 숫자와 1의 자리 숫자를 출력하는 프로그램을 작성하시오.
⋇ Please keep the input/output format well.
#include <stdio.h>
int main() {
int a;
scanf("%d", &a);
printf("십의자리 : %d\n", a/10);
printf("일의자리 : %d", a%10);
return 0;
}