Gustavo Vargas Melo / Mbed 2 deprecated Moy2

Dependencies:   mbed

Revision:
0:1214493cf1ee
Child:
1:21fa8fcaf4d6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Apr 10 19:48:27 2020 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h" 
+#include "math.h"
+
+Serial com1(USBTX, USBRX);
+ 
+;int exponente()
+{
+    int a;
+    int b=0;
+    printf("ingrese numero que desea elevar a la potencia 10 a:");
+    scanf("%d", &a);
+    b = pow(a, 10);
+    return b;
+ } 
+ 
+int main()
+{
+    printf("ejecutandose Main");
+    cout<<exponente()<<endl;
+}
+
+    
\ No newline at end of file