#include <stdio.h>
main()
char islem;
int sayi1,sayi2;
float sonuc;
{
printf("İlk sayiyi gir......:");
scanf("%d",&sayi1);
printf("İkinci sayiyi gir......:");
scanf("%d",&sayi2);
printf("İslemi gir(+,-,*,/)......:");
scanf("%1s",&islem);
switch(islem)
{
case '+': sonuc=sayi1+sayi2; break;
case '-': sonuc=sayi1-sayi2; break;
case '*': sonuc=sayi1*sayi2; break;
case '/': sonuc=(float)sayi1/sayi2; break;
default: printf("hatali islem.....!");
}
printf("sonuc.............►%10.2f",sonuc);
}