fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. float a,b;
  6. char op;
  7. scanf("%f%c%f",&a,&op,&b);
  8. printf("%f%c%f=%f",a,op,b,a*b);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0.01s 5312KB
stdin
1.2*1.3
stdout
1.200000*1.300000=1.560000