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@2:1040f42483d2, 2014-10-02 (annotated)
- Committer:
- alphasig
- Date:
- Thu Oct 02 17:46:07 2014 +0000
- Revision:
- 2:1040f42483d2
- Parent:
- 1:91abc11980c7
- Child:
- 3:d83be10beb40
haaa;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| jkangwi | 0:83851755c780 | 1 | #include "mbed.h" |
| alphasig | 2:1040f42483d2 | 2 | \\BRO |
| jkangwi | 0:83851755c780 | 3 | |
| jkangwi | 0:83851755c780 | 4 | |
| jkangwi | 0:83851755c780 | 5 | int main() { |
| jkangwi | 0:83851755c780 | 6 | |
| jkangwi | 0:83851755c780 | 7 | { |
| jkangwi | 0:83851755c780 | 8 | int hours; |
| jkangwi | 0:83851755c780 | 9 | float pay_rate; |
| jkangwi | 0:83851755c780 | 10 | float gross_pay; |
| jkangwi | 0:83851755c780 | 11 | |
| jkangwi | 0:83851755c780 | 12 | hours = 20; |
| jkangwi | 0:83851755c780 | 13 | pay_rate = 12.5; |
| jkangwi | 0:83851755c780 | 14 | gross_pay = 250.0; |
| jkangwi | 0:83851755c780 | 15 | |
| jkangwi | 0:83851755c780 | 16 | printf("I worked = %d\n\r", hours); |
| jkangwi | 0:83851755c780 | 17 | printf("My hourly rate is = $ %f\n\r", pay_rate); |
| jkangwi | 0:83851755c780 | 18 | printf("I earned = $ %f\n\r", gross_pay); |
| jkangwi | 0:83851755c780 | 19 | |
| jkangwi | 0:83851755c780 | 20 | } |
| jkangwi | 0:83851755c780 | 21 | } |
| jkangwi | 1:91abc11980c7 | 22 | |
| jkangwi | 1:91abc11980c7 | 23 | //makingsomestuffedit |