Creating A Calculator
Lesson 13Author : 🦒
Last Updated : November, 2017
Code
double num1, num2;
printf("num1: ");
scanf("%lf", &num1);
printf("num2: ");
scanf("%lf", &num2);
printf("%f", num1 + num2);
double num1, num2;
printf("num1: ");
scanf("%lf", &num1);
printf("num2: ");
scanf("%lf", &num2);
printf("%f", num1 + num2);