![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
xt
Dependencies: mbed
Fork of HelloWorld by
Diff: main.cpp
- Revision:
- 3:ea91605072d2
- Parent:
- 2:1fa29f7e26ff
--- a/main.cpp Thu Jun 25 09:42:23 2015 +0000 +++ b/main.cpp Thu Jun 25 10:14:17 2015 +0000 @@ -8,52 +8,52 @@ { for(a=0;a<2;a++) { - x=a; for(b=0;b<2;b++) { + x=a; y=b; z=1; - wait(1); + wait(0.25); z=0; if(a&&b==1) { e=1; wait(1); - e=0; } else { e=0; + wait(1); } - if(a&&!b==1) + if(a&&b==1) { - e=1; + e=0; wait(1); - e=0; } else { - e=0; + e=1; + wait(1); } if(a||b==1) { e=1; wait(1); - e=0; } else { e=0; + wait(1); } if(a==!b) { e=1; wait(1); - e=0; } else { e=0; + wait(1); } } }