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:0b9be892ceaf
- Parent:
- 0:f8d824abdf66
- Child:
- 2:976e71d7270c
--- a/main.cpp Fri Apr 03 06:02:07 2020 +0000
+++ b/main.cpp Fri Apr 03 19:34:28 2020 +0000
@@ -14,8 +14,14 @@
int suma(int a, int b)
{
- int suma;
- suma= a + b ;
- com1.printf("la suma es igual a; \n") ;
-return (suma);
+ int variable1, variable2, suma;
+ variable1=10;
+ variable2=4;
+ suma= variable1 + variable2 ;
+ while(1);
+ {
+ com1.printf("la suma es igual a %d \n", suma);
+ wait(1);
+ }
+ return (suma);
}