-
-
Save emShadow/3c7316f35acea6066c2ceadcbc235c5b 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
/* la funcion main inicia la ejecucion del programa */ | |
main() | |
{ | |
int num1; /* primer numero que lee el usuario */ | |
int num2; /* segundo numero que lee el usuario */ | |
printf( "introduzca dos enteros, y le dire\n" ); | |
printf( "las relaciones que satisfacen: " ); | |
scanf( "%d%d", &num1, &num2 ); /* lectura de los enteros */ | |
if ( num1 == num2 ) { | |
printf ( "%d es igual que %d/n" , num1, num2 ); | |
} /* fin de if */ | |
if ( num1 != num2 ) { | |
printf( "%d no es igual que %d/n", num1, num2 ); | |
} /* fin de if */ | |
if (num1 < num2 ) { | |
printf( "%d es menor que %d/n", num1, num2 ); | |
} /* fin de if */ | |
if (num1 < num2 ) { | |
printf ("%d es mayor que %d/n", num1, num2 ); | |
} /* fin de if */ | |
if (num1 <= num2) { | |
printf ( "%d es menor o igual que %d/n", num1, num2 ); | |
} /* fin de if */ | |
if (num1 >= num2 ) { | |
printf ( "%d es mayor o igual que %d/n", num1, num2 ); | |
} /* fin de if */ | |
return 0; /* indica que el programa termino con exito */ | |
} /* fin de la funcion main */ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment