online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Online C Compiler. Code, Compile, Run and Debug C program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <stdio.h> float askhoursworked (); float askhourlyrate (); float calculategrosspay (float hours, float rate); float calculatepayrolltax (float grosspay); float calculatenetpay (float grosspay, float tax); float displayallvalues (float hours, float rate, float tax, float grosspay, float netpay); int main () { float hours; float rate; float grosspay; float tax; float netpay; float values; hours = askhoursworked (); rate = askhourlyrate (); grosspay = calculategrosspay (hours, rate); tax = calculatepayrolltax (grosspay); netpay = calculatenetpay (grosspay, tax); values = displayallvalues (hours, rate, tax, grosspay, netpay); return 0; } float askhoursworked () { float hours; printf ("\n Please enter hours worked \t"); scanf ("%f", &hours); return hours; } float askhourlyrate () { float rate; printf ("\n Please enter your payrate \t"); scanf ("%f", &rate); return rate; } float calculategrosspay (float hours, float rate) { float grosspay; grosspay = hours * rate; return grosspay; } float calculatenetpay (float grosspay, float tax) { float netpay; netpay = grosspay - tax; return netpay; } float calculatepayrolltax (float grosspay) { float tax; tax = grosspay * .22; return tax; } float displayallvalues (float hours, float rate, float tax, float grosspay, float netpay) { printf ("\n Your total hours are %.2f", hours); printf ("\n Your hourly rate %.2f", rate); printf ("\n Your grosspay is %.2f", grosspay); printf ("\n Your taxes are %.2f", tax); printf ("\n Your netpay is %.2f", netpay); }

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