Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- 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;
}