Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~94 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for mohamed.abdelsalam.96558061

#include <cstdlib> #include <iostream> using namespace std; int main() { float op1,op2,answer; char op; cout<<"Entre the first numper"; cin>>op1; cout<<"/nEnter the operation"; cin>>op; cout<<"/nEntre the second numper"; cin>>op2; if(op=='+') answer=op1+op2; if(op=='-') answer=op1-op2; if(op=='*') answer=op1*op2; if(op=='/') answer=op1/op2; else cout<<op1<<op<<op2<<" = "<<answer; system("PAUSE"); }

Member Avatar for ookhan
0
94