>>190
#include <stdio.h>

int main(void)
{
int op1, op2, i, tmp;

printf("Input A: ");
i = scanf("%d", &op1);
printf("Input B: ");
tmp = scanf("%d", &op2);

if (!(i && tmp)) {
puts("Error!! A or B is invalid!");
return -1;
}

printf("\n%d + %d = %d\n%1$d - %2$d = %d\n%1$d * %2$d = %d\n",
op1, op2, op1+op2, op1-op2, op1*op2);
op2?printf("%d / %d = %d ・・・ %d\n", op1, op2, op1/op2, op1-(op1/op2)*op2)
:1;

return 0;
}

printfの書式指定でちょっとややこしいこと+三項演算子使ってるがダメだったら言ってくれ