Our Recommendation for You Search your Query, You can find easily. for example search by book name or course name or any other which is related to your education

Followers

how to make a calculator using c++

c++ calculator source code

This is the source code for making the basic calculator in c++

#include<iostream.h>
#include<conio.h>
main()
{
      float x,y;
      char op;
      cout<<"enter first value,arithematic operator and second value:";
      cin>>x>>op>>y;
      if(op=='+')
      cout<<x+y;
      else if(op=='-')
      cout<<x-y;
      else if(op=='*')
      cout<<x*y;
      else if(op=='/')
      cout<<x/y;
      else 
      cout<<"invalid operator %%%%%%%%%";
      getch();
      }


OUR RECOMMENDATION FOR YOU