/* Declaramos las Librerias */
#include
#include
main() /* Iniciamos el programa */
{
clrscr(); /* Limpiamos la pantalla */
int a,b; /* Declaramos enteros */
printf("Dame 1 numero:"); /*Imprimimos en pantalla */
scanf("%d",&a); /* Escaneamos un valor y lo guardamos en a */
printf("nDame otro numero:");
scanf("%d",&b);
if (a>b) printf("nEl mayor es %d",a); /* Si a es mayor que b */
else
if (b>a) printf("nEl mayor es %d",b);
if (b=a) printf("nSon Iguales");
getch(); /* Usamos getch para no regresar al compilador antes de ver el resultado */
return 0;
}
One of the most astonishing old town on the planet Old City of Jerusalem
-
Jerusalem is perhaps the most established city on the planet . By measuring
its history and its multifaceted nature, on the off chance that we think
about ...
Hace 5 años
1 comentarios:
en la parte donde compara si son iguales, estas asignando ya que solo tiene un = en lugar de ==
Publicar un comentario