1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
int numero;
printf ("Ingresa el valor de numero: ");
scanf ("%d", &numero);
(void) getchar ();
if(numero%2==0)
printf ("el numero es par\n");
else
printf ("el numero es impar\n");
putchar ('\n');
system ("pause");
return EXIT_SUCCESS;
}
#include <stdlib.h>
int main (void)
{
int numero;
printf ("Ingresa el valor de numero: ");
scanf ("%d", &numero);
(void) getchar ();
if(numero%2==0)
printf ("el numero es par\n");
else
printf ("el numero es impar\n");
putchar ('\n');
system ("pause");
return EXIT_SUCCESS;
}