Bertie Harte
/
CAQuestion6
make public
Revision 0:c21bfc9b3a35, committed 2021-03-26
- Comitter:
- BertieHarte
- Date:
- Fri Mar 26 10:20:29 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 |
diff -r 000000000000 -r c21bfc9b3a35 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Mar 26 10:20:29 2021 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" // add "." to tell compiler that it requires a .h file. +int a = 10; // add semi-colon +int b = 20; // use lower case b as line 7 call the lower case. +int main() { + int c = a + b; // add semi-colon + printf("the final answer = %d\n", c); +} + + +
diff -r 000000000000 -r c21bfc9b3a35 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Mar 26 10:20:29 2021 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file