online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include "stdio.h" #include<iostream> #include<iomanip> using namespace std; int main() { float x,y; char c; float r; cout << "please enter 2 numbers: "<< endl; cin >> x >> y; cout <<"please enter the operation:" << endl; cin >> c; switch(c) { case '+': r=x+y; break; case '-': r=x-y; break; case '*': r= x*y; break; case '/': r= x/y; break; case 'A': r=(x+y)/2 ; break; case '>': r=(x>y)? x : y;break; case '<': r=(x<y)? x : y;break; } cout << "the result is : "<<r<<endl ; system("pause"); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue