#include <stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); printf("%d + %d = %d\n", A, B, A + B); printf("%d - %d = %d\n", A, B, A - B); printf("%d * %d = %d\n", A, B, A * B); printf("%d / %d = %d\n", A, B, A / B); return 0; }
#include <stdio.h> int main() { int num; scanf("%d", &num); int hundreds = num / 100; int tens = (num / 10) % 10; int units = num % 10; printf("%d,%d,%d\n", hundreds, tens, units); return 0; }