[C] 백준 #10430 - 나머지
·
💡 Algorithm/백준
#define _CRT_SECURE_NO_WARNINGS #include int main(void) { int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%d\n", (a + b) % c); printf("%d\n", ((a%c)+(b%c))%c); printf("%d\n", (a*b)%c); printf("%d", ((a%c)*(b%c))%c); return 0; }