jhonatan angel
/
Nucleo_blink_led
Proyect ON-Off_LED
main.cpp
- Committer:
- angel123
- Date:
- 2018-08-28
- Revision:
- 0:cc8f4469adda
File content as of revision 0:cc8f4469adda:
#include "mbed.h" Serial pc(USBTX,USBRX); int main() { float op1=0,op2=0,res; char ope; pc.printf("ingrese primer valor"); op1 = pc.getc(); pc.putc(op1); pc.printf("\n ingrese segundo valor"); op2 = pc.getc(); pc.printf("\n ingrese tercer valor"); ope = pc.getc(); switch (ope) { case '+': res = op1+op2; break; } pc.putc(res); }