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.
Revision 0:8193698dab31, committed 2020-11-12
- Comitter:
- dnluna_
- Date:
- Thu Nov 12 06:44:10 2020 +0000
- Commit message:
- conditinal if
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FXOS8700Q.lib Thu Nov 12 06:44:10 2020 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/Freescale/code/FXOS8700Q/#aee7dea904e2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 12 06:44:10 2020 +0000 @@ -0,0 +1,25 @@ +#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"); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Nov 12 06:44:10 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file