Oscar Mexía / Mbed 2 deprecated LAB_1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
o_mexia
Date:
Fri Sep 05 08:17:25 2014 +0000
Parent:
0:11cc22238a53
Commit message:
Laboratorio 1 - A01138679

Changed in this revision

B.cpp Show annotated file Show diff for this revision Revisions of this file
C.cpp Show annotated file Show diff for this revision Revisions of this file
D.cpp Show annotated file Show diff for this revision Revisions of this file
E.cpp Show annotated file Show diff for this revision Revisions of this file
F.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/B.cpp	Fri Sep 05 08:17:25 2014 +0000
@@ -0,0 +1,19 @@
+#include <iostream>
+
+using namespace std;
+
+bool ecuacion;
+
+int a, b, c;
+
+int main()
+{
+    a = 0;
+    b = 0;
+    c = 0;
+    
+    ecuacion = ( ( !a && a ) || ( !b && b ) || ( !c && c));
+    cout << ecuacion << endl;
+    return 0;
+
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C.cpp	Fri Sep 05 08:17:25 2014 +0000
@@ -0,0 +1,19 @@
+#include <iostream>
+
+using namespace std;
+
+bool ecuacion;
+
+int a, b, c;
+
+int main()
+{
+    a = 0;
+    b = 0;
+    c = 0;
+    
+    ecuacion = ( ( !b || c ) && a );
+    cout << ecuacion << endl;
+    return 0;
+
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/D.cpp	Fri Sep 05 08:17:25 2014 +0000
@@ -0,0 +1,19 @@
+#include <iostream>
+
+using namespace std;
+
+bool ecuacion;
+
+int a, b, c;
+
+int main()
+{
+    a = 0;
+    b = 0;
+    c = 0;
+    
+    ecuacion = ( ( ( a || b ) && !c ) || (( a || c ) && !b ) || (( b || c ) && !a ));
+    cout << ecuacion << endl;
+    return 0;
+
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/E.cpp	Fri Sep 05 08:17:25 2014 +0000
@@ -0,0 +1,19 @@
+#include <iostream>
+
+using namespace std;
+
+bool ecuacion;
+
+int a, b, c;
+
+int main()
+{
+    a = 0;
+    b = 0;
+    c = 0;
+    
+    ecuacion = ( a || !a || ( b && !c ));
+    cout << ecuacion << endl;
+    return 0;
+
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/F.cpp	Fri Sep 05 08:17:25 2014 +0000
@@ -0,0 +1,19 @@
+#include <iostream>
+
+using namespace std;
+
+bool ecuacion;
+
+int a, b, c;
+
+int main()
+{
+    a = 0;
+    b = 0;
+    c = 0;
+    
+    ecuacion = ( ( a && b && c ) || ( !a && !b && !c ) );
+    cout << ecuacion << endl;
+    return 0;
+
+}
\ No newline at end of file