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.
Revision 0:5f5548003738, committed 2021-03-26
- Comitter:
- BertieHarte
- Date:
- Fri Mar 26 10:20:53 2021 +0000
- Commit message:
- make public
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Mar 26 10:20:53 2021 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" +int a = 10; // declare int variable for each of the values from question +int b = 20; +int c = 30; + + +int main() { + int d = (a + b); // perform calculation to get int d. + printf("d = %d \n \r", d); // print result of d. + int e = (d - c); // perform calculation to get int e. + printf("e = %d \n \r", e); // print result of e. + }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Mar 26 10:20:53 2021 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file