#include <stdio.h>
int
main ()
{
double a, b, c;
char eingabe;
do
{
char q;
/* Weiterrechnen Ja oder Nein */
printf ("Bitte Zahl a, Operanten und Zahl b eingeben \t ");
scanf("%lf %c %lf", &a, &q, &b );
if (q == 43)
{
c = a+b;
//printf ("%lf %c %lf", a, q, b);
}
if (q == 45)
{
c = a-b;
}
if (q == 42)
{
c = a*b;
}
if (q == 47)
{
c = a/b;
}
printf ("%lf %c %lf = %lf\n", a, q, b, c);
printf("Moechten Sie Weiterrechnen? \t");
scanf ("%c", &eingabe);
}
while (eingabe != 'n');
return 0;
}