#include <stdio.h>

int main(void) 
{
    int numero;
    
    printf ("Escriba un numero: ");
    scanf("%d", &numero);
    
    if(numero>=0)
        printf("El numero escrito es positivo");
        
    /*Esta linea ya está fuera de la sentencia if*/
    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: