![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
clge exp1
Revision 1:ef00f07599d7, committed 2015-06-11
- Comitter:
- harseed951
- Date:
- Thu Jun 11 10:16:10 2015 +0000
- Parent:
- 0:76c61fcbd486
- Commit message:
- dsf
Changed in this revision
aandb.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 76c61fcbd486 -r ef00f07599d7 aandb.cpp --- a/aandb.cpp Thu Jun 11 10:01:07 2015 +0000 +++ b/aandb.cpp Thu Jun 11 10:16:10 2015 +0000 @@ -6,8 +6,8 @@ DigitalOut d(LED4); int main() { while(1) { - int q=0,w=2,e; - e=(q-w)^2; + int q=1,w=2,e; + e=(q*q)+(w*w)-(2*q*w); switch(e) { case 1: