Jair Valdovinos / Mbed 2 deprecated P4_EJ4

Dependencies:   mbed

Committer:
thesad
Date:
Mon Apr 06 23:44:39 2020 +0000
Revision:
26:e38cccb546f9
Parent:
25:c4eed8baa6d3
Child:
27:dd66bc613818
Practica 4, ejercicio 4

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thesad 26:e38cccb546f9 1 #include "mbed.h"
thesad 26:e38cccb546f9 2
thesad 26:e38cccb546f9 3
dan 0:7dec7e9ac085 4
thesad 26:e38cccb546f9 5 int main()
thesad 26:e38cccb546f9 6 {
thesad 26:e38cccb546f9 7
thesad 26:e38cccb546f9 8 int tecla;
dan 0:7dec7e9ac085 9
thesad 26:e38cccb546f9 10 while(1){
thesad 26:e38cccb546f9 11
thesad 26:e38cccb546f9 12 printf("Escoge uno: 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 \n"); scanf(" %i", &tecla);
thesad 26:e38cccb546f9 13
thesad 26:e38cccb546f9 14 switch(tecla){
thesad 26:e38cccb546f9 15
thesad 26:e38cccb546f9 16 case 0:printf("Paseme profe :D \n");
thesad 26:e38cccb546f9 17 break;
thesad 26:e38cccb546f9 18
thesad 26:e38cccb546f9 19 case 6:printf("RUSSIAN MODE ACTIVED \n");
thesad 26:e38cccb546f9 20 break;
thesad 26:e38cccb546f9 21
thesad 26:e38cccb546f9 22 case 7:printf("Quiero pasar profe :c \n");
thesad 26:e38cccb546f9 23 break;
thesad 26:e38cccb546f9 24
thesad 26:e38cccb546f9 25 case 8:printf("SALVE RUSSIA \n");
thesad 26:e38cccb546f9 26 break;
thesad 26:e38cccb546f9 27
thesad 26:e38cccb546f9 28 case 1:printf("1-2 freddy viene por ti \n");
thesad 26:e38cccb546f9 29 break;
rgsbuap 25:c4eed8baa6d3 30
thesad 26:e38cccb546f9 31 case 2:printf("3-4 cierra la puerta \n");
thesad 26:e38cccb546f9 32 break;
thesad 26:e38cccb546f9 33
thesad 26:e38cccb546f9 34 case 3:printf("5-6 coje un crucifijo \n");
thesad 26:e38cccb546f9 35 break;
thesad 26:e38cccb546f9 36
thesad 26:e38cccb546f9 37 case 4:printf("7-8 mantente despierto \n");
thesad 26:e38cccb546f9 38 break;
thesad 26:e38cccb546f9 39
thesad 26:e38cccb546f9 40 case 5:printf("9-10 nunca mas dormiras \n");
thesad 26:e38cccb546f9 41 break;
thesad 26:e38cccb546f9 42
thesad 26:e38cccb546f9 43 case 9:printf("Pasenos con esa calificación :D \n");
thesad 26:e38cccb546f9 44 break;
thesad 26:e38cccb546f9 45
thesad 26:e38cccb546f9 46 }
thesad 26:e38cccb546f9 47 }
thesad 26:e38cccb546f9 48
thesad 26:e38cccb546f9 49 }
thesad 26:e38cccb546f9 50