clge exp1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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: