top of page
Buscar

Selectiva simple

  • Foto del escritor: Programacion
    Programacion
  • 15 may 2018
  • 1 Min. de lectura

Principal

Inicio

Entero ed

Imprimir(“Dame tu edad”)

Leer(ed>18)

Imprimir(“Eres mayor de edad”)

Imprimir(“Que tengas buen dia”)

Fin

Int main(…)

{

Int ed;

Printf(“Dame tu edad\n”);

Scanf(“%D”,&ed);

if (ed >18)

{printf(“Eres menor de edad\n”);

Printf(“No puedes votar\n”);}

Printf(“Que tengas un buen dia”);

Return 0;

}

ree

 
 
 

Comentarios


  • Facebook - White Circle
  • Instagram - White Circle
  • Twitter - White Circle
  • YouTube - White Circle

© 2023 por Haciendo Ruido.

Creado con Wix.com

bottom of page