make public

Dependencies:   mbed

main.cpp

Committer:
BertieHarte
Date:
2021-03-26
Revision:
0:c21bfc9b3a35

File content as of revision 0:c21bfc9b3a35:

#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);
}