Cielo Benítez / Mbed 2 deprecated Pract4_ejer4

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
cielo
Date:
Sun Apr 12 04:32:19 2020 +0000
Parent:
25:7dad1f41744f
Commit message:
Estructura switch case para imprimir diferentes mensajes

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Apr 11 05:02:32 2020 +0000
+++ b/main.cpp	Sun Apr 12 04:32:19 2020 +0000
@@ -7,7 +7,7 @@
 int main(){
     char n;
     com1.printf("Digite un numero entre 0-9: ");
-    scanf(" %c",&n);
+    com1.scanf(" %c",&n);
     switch(n){
         case 48:printf("Es el numero 0");
         break;