>>888
char ope[256];
scanf ("%s", ope);
switch (*ope) {
printf ("%d %c %d = %d", dat1, *ope, dat2, ans);

テキトーでいいならこれで