Programa (Uso de if) Quien quiere ser millonario( C )
#include
int op;
int uno,dos,tres;
int opresuno,opresdos,oprestres,oprescuatro;
int oprescinco,opresseis,opressiete;
int opresocho,opresnueve,opresdiez;
int opresonce,opresdoce,oprestrece,oprescatorce;
int opresquince;
void opciones();
int ingresaropcion();
void opcionincorrecta1();
void opcionincorrecta2();
void opcionincorrecta3();
voidopcionincorrectadeljuego1();
void opcionincorrectadeljuego2();
void opcionincorrectadeljuego3();
void opcionincorrectadeljuego4();
void opcionincorrectadeljuego5();
void opcionincorrectadeljuego6();
void opcionincorrectadeljuego7();
void opcionincorrectadeljuego8();
void opcionincorrectadeljuego9();
void opcionincorrectadeljuego10();
void opcionincorrectadeljuego11();
void opcionincorrectadeljuego12();
voidopcionincorrectadeljuego13();
void opcionincorrectadeljuego14();
void opcionincorrectadeljuego15();
int main()
{
system("color 32"); // fondo Rojo, letra blanco brillante (F)
printf("****************************************************************************");
system("color DF");
//Codigo de color (fondo,texto);
printf("\n \3\3\3\3\3\3 \3\3 \3\3 \3\3\3\3\3\3\3\3 \3\3\3 \3\3 ");Sleep(200);//Para que las palabras salgan parte por parte(velocidad)
printf("\n \3\3 \3\3 \3\3 \3\3 \3\3 \3\3\3\3\3\3 \3\3\3\3 \3\3 ");Sleep(200);
printf("\n \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 ");Sleep(200);
printf("\n \3\3 \3\3 \3\3 \3\3 \3\3 \3\3\3\3 \3\3\3\3 \3\3 ");Sleep(200);
printf("\n \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3\3\3 ");Sleep(200);
printf("\n \3\3 \3\3 \3\3 \3\3 \3\3 \3\3\3\3\3\3 \3\3 \3\3\3 ");Sleep(200);
printf("\n \3\3\3\3\3 \3\3 \3\3\3\3\3\3\3 \3\3 \3\3\3\3\3\3 \3\3 \3\3");Sleep(200);
printf("\n \3\3\n");
printf("\n \3\3\3\3\3\3 \3\3 \3\3 \3\3 \3\3\3\3\3\3 \3\3\3\3\3\3\3 \3\3\3\3\3\3");Sleep(200);
printf("\n \3\3 \3\3 \3\3 \3\3 \3\3 \3\3\3\3\3\3 \3\3 \3\3 \3\3\3\3\3\3");Sleep(200);
printf("\n \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 ");Sleep(200);
printf("\n \3\3 \3\3 \3\3\3\3 \3\3 \3\3\3\3 \3\3\3\3\3\3 \3\3\3\3");Sleep(200);
printf("\n \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3");Sleep(200);
printf("\n \3\3 \3\3 \3\3 \3\3 \3\3 \3\3\3\3\3\3 \3\3 \3\3 \3\3\3\3\3\3");Sleep(200);
printf("\n \3\3\3\3\3 \3\3 \3\3\3\3\3\3\3 \3\3 \3\3\3\3\3\3 \3\3 \3\3\3\3\3\3\3\3");Sleep(200);
printf("\n \3\3\n");Sleep(200);
printf("\n \3\3\3\3\3\3 \3\3\3\3\3\3 \3\3\3\3\3\3\3 ");Sleep(200);
printf("\n \3\3 \3\3\3\3\3\3 \3\3 \3\3 ");Sleep(200);
printf("\n \3\3\3\3\3\3\3\3\3 \3\3 \3\3 \3\3 ");Sleep(200);
printf("\n \3\3\3\3\3\3\3\3 \3\3\3\3\3\3 ");Sleep(200);
printf("\n \3\3\3 \3\3 \3\3 \3\3 ");Sleep(200);
printf("\n \3\3 \3\3 \3\3\3\3\3\3 \3\3 \3\3 ");Sleep(200);
printf("\n \3\3\3\3\3\3\3 \3\3\3\3\3\3 \3\3 \3\3\n");Sleep(200);
printf("\n\3\3\3\3 \3\3\3\3 \3\3 \3\3 \3\3 \3\3\3\3\3\3\3\3\3 \3\3 \3\3\3\3\3\3 \3\3\3\3\3\3\3 \3\3 \3\3\3\3\3\3");Sleep(200);
printf("\n\3\3\3\3 \3\3\3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3\3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3");Sleep(200);
printf("\n\3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3 \3\3");Sleep(200);
printf("\n\3\3 \3\3\3\3 \3\3 \3\3...
Regístrate para leer el documento completo.