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
- Committer:
- dnluna_
- Date:
- 2020-11-12
- Revision:
- 0:8193698dab31
File content as of revision 0:8193698dab31:
#include "mbed.h" //P4E3 Serial comunication(USBTX, USBRX); //Programa que hace uso de la condicinal if a tráves de tres distintas teclas int main (){ char x; comunication.printf("¿Qué día es hoy?\n"); comunication.printf("Lunes= l Martes=a Miercoles= m Jueves= j Viernes= v Sábado=s Domingo= d\n"); scanf("%s", &x); if(x=='l') { comunication.printf("Tienes clase de SDR\n"); } if(x=='v') { comunication.printf("Tienes clase de SDR\n"); } if(x=='s') { comunication.printf("Tienes clase de SDR\n"); } else{ comunication.printf("No tienes clase :) \n"); } }