#include <stdio.h>
int main() {
int A, B, C, D, E, F;
scanf("%d%d%d\n", &A, &B, &C);
scanf("%d%d%d", &D, &E, &F);
printf("%d\n", ((A * 100) + (B * 10) + C) * F);
printf("%d\n", ((A * 100) + (B * 10) + C) * (E * 10));
printf("%d\n", ((A * 100) + (B * 10) + C) * (D * 100));
printf("%d", ((A * 100) + (B * 10) + C) * ((D * 100) + (E * 10) + F));
return 0;
}
https://www.acmicpc.net/problem/2588 It's Baekjun's question. I know how to use % but why can't I use the method I wrote? You must enter a string, not an integer, to activate the printf function, but I don't know why ㅠ<
c calculate 3d
scanf %d does not only accept single-digit integers.
© 2024 OneMinuteCode. All rights reserved.