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
Diff: main.cpp
- Revision:
- 0:83851755c780
- Child:
- 1:91abc11980c7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Oct 02 17:40:00 2014 +0000
@@ -0,0 +1,21 @@
+#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);
+
+ }
+}