clge exp1

Dependencies:   mbed

Revision:
1:ef00f07599d7
Parent:
0:76c61fcbd486
--- 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: