![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
xt
Dependencies: mbed
Fork of HelloWorld by
Revision 3:ea91605072d2, committed 2015-06-25
- Comitter:
- Abhisheik
- Date:
- Thu Jun 25 10:14:17 2015 +0000
- Parent:
- 2:1fa29f7e26ff
- Commit message:
- abhi
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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); } } }