Calculator by Mohit Purohit C O D E Copy Code /* Creator - Mohit Purohit Date - 21 Jan. 2022 Time - 8:52 P.M. */ # include <stdio.h> # include <conio.h> //#include<string.h> int main () { clrscr(); /* 'num1' and 'num2' are 'float' means decimal value. 'op' means operator and 'op' is a 'char' means character. Then result is also a 'float' value. */ float num1; float num2; char op; float result; const float p= 3.14159265 ; // User enter the first number means 'num1'. printf ( "Enter the first number : " ); scanf ( "%f" ,&num1); // User enter the operator means 'op'. ...
Comments
Post a Comment