Posts

Showing posts with the label float

Calculator - Output of division, addition, substraction and multiplication of two given numbers.

ap3g #include <iostream> using namespace std ; //decimal output ke leye calculator jo sab sath mein hora(float). :D int main (){       float a , b ;       cout << "Input two numbers: " ;       cin >> a >> b ;       cout << "Output of division, addition, substraction and multiplication of two given numbers: " << endl ;       char op ;                               //if(op = '/'){             float div = a / b ;             cout << "a " << "/" << " b = " << div << endl ;          //}           //if(op = '+'){               float add = a + b ;               cout << "a " << "+" ...