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.
main.cpp@0:1214493cf1ee, 2020-04-10 (annotated)
- Committer:
- akumagame
- Date:
- Fri Apr 10 19:48:27 2020 +0000
- Revision:
- 0:1214493cf1ee
- Child:
- 1:21fa8fcaf4d6
s
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| akumagame | 0:1214493cf1ee | 1 | #include "mbed.h" |
| akumagame | 0:1214493cf1ee | 2 | #include "math.h" |
| akumagame | 0:1214493cf1ee | 3 | |
| akumagame | 0:1214493cf1ee | 4 | Serial com1(USBTX, USBRX); |
| akumagame | 0:1214493cf1ee | 5 | |
| akumagame | 0:1214493cf1ee | 6 | ;int exponente() |
| akumagame | 0:1214493cf1ee | 7 | { |
| akumagame | 0:1214493cf1ee | 8 | int a; |
| akumagame | 0:1214493cf1ee | 9 | int b=0; |
| akumagame | 0:1214493cf1ee | 10 | printf("ingrese numero que desea elevar a la potencia 10 a:"); |
| akumagame | 0:1214493cf1ee | 11 | scanf("%d", &a); |
| akumagame | 0:1214493cf1ee | 12 | b = pow(a, 10); |
| akumagame | 0:1214493cf1ee | 13 | return b; |
| akumagame | 0:1214493cf1ee | 14 | } |
| akumagame | 0:1214493cf1ee | 15 | |
| akumagame | 0:1214493cf1ee | 16 | int main() |
| akumagame | 0:1214493cf1ee | 17 | { |
| akumagame | 0:1214493cf1ee | 18 | printf("ejecutandose Main"); |
| akumagame | 0:1214493cf1ee | 19 | cout<<exponente()<<endl; |
| akumagame | 0:1214493cf1ee | 20 | } |
| akumagame | 0:1214493cf1ee | 21 | |
| akumagame | 0:1214493cf1ee | 22 |