Jair Valdovinos / Mbed 2 deprecated P5_E2

Dependencies:   mbed FXOS8700Q

Revision:
1:b6b079534178
Parent:
0:a9edb328dd9c
--- a/main.cpp	Sat Apr 11 01:43:48 2020 +0000
+++ b/main.cpp	Wed Apr 15 21:50:40 2020 +0000
@@ -1,6 +1,5 @@
 #include "mbed.h"
 #include <stdio.h>
-#include <iostream>
 #include <math.h>
 
 Serial com1(USBTX, USBRX);
@@ -21,7 +20,7 @@
 {
   while(1){
   int t, b;
-  com1.printf( "Escriba un número: " ); scanf( "%i", &t );
+  com1.printf( "Escriba un número: " ); com1.scanf( "%i", &t );
   b = t*t*t*t*t*t*t*t*t*t;
   return b;
     }