#include <iostream>
#define SECRETO 3
const int PREMIO = 6;

int main() {
    int numero;
    
    printf ("Escriba el numero secreto: ");
    scanf ("%d", &numero);
    fflush(stdin);
    
    if (numero == SECRETO)
    printf ("\nMuybien. Has ganado %d puntos.", PREMIO);
    else
    printf ("\nLo siento, no lo has adivinado. Era: %d", SECRETO);
    
    return 0;
}

Embed on website

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