Created
February 18, 2016 11:49
-
-
Save jmramirezpro/6c377d7ebd2b9da73fc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* NumeroPar.c | |
* Escribe un programa que lea un número entero y que muestre en la salida | |
* estándar si el número leído es par o impar | |
* Creado el 16 de feb. de 2016 | |
* Author: jmramirez | |
*/ | |
#include <stdio.h> | |
int main(void) | |
{ | |
int numero; | |
printf("Escribe número entero: "); | |
scanf("%d",&numero); | |
if (numero % 2 == 0){ | |
printf("El número introducido es PAR \n" ); | |
}else{ | |
printf("El número introducido es IMPAR \n" ); | |
} | |
return (0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment