#include <stdio.h>

int main (void) 
{
  int numero;

  printf("Escriba un numero: ");
  scanf("%d", &numero);

  if (numero >= 0)
    printf("El numero escrito es positivo");
  else
    printf("El numero escrito es negativo");
  
  /*Esta linea ya no pertenece a la sentencia if-else*/
  printf("\nAdios");
  
  /*Hacemos una pausa hasta que el usuario pulse Intro*/
  fflush(stdin);
  printf("\nPulse Intro para finalizar...");
  getchar();
    
  return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: