Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp
- Committer:
- jkangwi
- Date:
- 2014-10-02
- Revision:
- 0:83851755c780
- Child:
- 1:91abc11980c7
File content as of revision 0:83851755c780:
#include "mbed.h"
int main() {
{
int hours;
float pay_rate;
float gross_pay;
hours = 20;
pay_rate = 12.5;
gross_pay = 250.0;
printf("I worked = %d\n\r", hours);
printf("My hourly rate is = $ %f\n\r", pay_rate);
printf("I earned = $ %f\n\r", gross_pay);
}
}