Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Expensive calculator
Language: C/C++
Code:
#include <stdio.h>

int main(void) {
    double one, two, c;
     
     printf("Enter first decimal value: \n");
         scanf("%lf",&one);
         printf("Enter second decimal value: \n");
         scanf("%lf",&two);
         c=one+two;
         printf("%lf + %lf = %lf \n", one, two, c);
         c=one-two;
         printf("%lf - %lf = %lf \n", one , two, c);
         c=one*two;
         printf("%lf x %lf = %lf \n", one , two, c);
         c=one/two;
         printf("%lf / %lf = %lf \n", one , two, c);
}
          
          
          
Comments: