![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Template project for University of York ELE00032C Lab 1
Diff: main.cpp
- Revision:
- 2:37ebb2c62336
- Parent:
- 1:e51aa8988fd1
diff -r e51aa8988fd1 -r 37ebb2c62336 main.cpp --- a/main.cpp Mon Jan 11 12:54:05 2021 +0000 +++ b/main.cpp Mon Jan 11 13:18:46 2021 +0000 @@ -2,9 +2,20 @@ int main() { - int var = 100; + int var = 10; printf("var: %d\n", var); + if (var > 6) { + printf("var is greater than 6\n"); + } + + var = 3; + + printf("var: %d\n", var); + if (var < 5) { + printf("var is less than 5\n"); + } + // Do nothing, forever... while (true);