Jair Valdovinos / Mbed 2 deprecated P5_E2

Dependencies:   mbed FXOS8700Q

Files at this revision

API Documentation at this revision

Comitter:
thesad
Date:
Wed Apr 15 21:50:40 2020 +0000
Parent:
0:a9edb328dd9c
Commit message:
https://os.mbed.com/users/thesad/code/P4_EJ4/; ;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;
     }