![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Template project for University of York ELE00032C Lab 7
Diff: main.cpp
- Revision:
- 0:77209603a6fe
- Child:
- 1:acb591685a28
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jan 11 11:28:11 2021 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +int main() +{ + int x = 4; + x = 6; + int y; + y = 2*x; + x = 7; + + printf("x:%d y:%d\n", x, y); + + // Do nothing, forever... + while (true); +}