Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int vision = 0;
- int tempselectro = 0;
- int pepbdevue = 0;
- int heure = 0;
- {
- printf("Hello. Ce programme va t'aider a evaluer ta vue\n\n");
- printf("Tout d'abord, tu t'evaluerais comment ?\n\n");
- printf("Tapez 1 pour mauvais, 2 pour correct, 3 pour bon et 4 pour excellent.\n\n");
- scanf("%d", &vision);
- switch(vision)
- {
- case 1:
- printf("Tu �values ta vue comme mauvaise.\n\n");
- do
- {
- printf("Combien de temps par jour vas-tu sur ton ordinateur ou utilises-tu ton telephone portable ?\n");
- printf("Entre 1 et 3h, tape 1, entre 3 et 6h, tape 2, plus de 6h tape 3\n\n");
- scanf("%d", &tempselectro);
- if(tempselectro == 1)
- {
- printf("Je suis desole pour toi mais tu es ne avec une deficience visuelle\n");
- return 1;
- }
- else if(tempselectro == 2)
- {
- printf("Repose toi un peu plus et limite toi pour passer a 1\n");
- printf("C'est le seul conseil valable");
- return 1;
- }
- else if(tempselectro == 3)
- {
- printf("Deja, merci d'avoir ete honnete. Maintenant, tu vas...");
- printf("ETEINDRE TON PC ET NE PLUS Y TOUCHER PENDANT 2 SEMAINES ENTIERES !");
- return 1;
- }
- else
- {
- printf("Bon bah tu sais pas repondre. 1, 2 ou 3 ?");
- printf("Je te repose la question, cette fois tu sais quoi repondre");
- return 1;
- }
- }
- while(tempselectro != 1 || 2 || 3);
- break;
- case 2:
- printf("Tu evalues ta vue comme correcte\n");
- printf("Es-tu ne avec un probleme de vue ?\n");
- printf("Tape 1 pour Oui, et 2 pour Non\n\n");
- scanf("%d", &pepbdevue);
- do
- {
- if(pepbdevue == 1)
- {
- printf("Vas voir un opticien, il pourra t'aider.");
- return 1;
- }
- else if(pepbdevue == 2)
- {
- printf("Alors ralentis ton rythme d'electronique renoi");
- return 1;
- }
- else
- {
- printf("Tu sais pas repondre ? 1 ou 2 ?\n\n");
- printf("Je te repose la question, reponds-y bien cette fois.");
- }
- }
- while(pepbdevue != 1 || 2);
- break;
- case 3:
- printf("Tu evaleus ta vue comme bonne. Felicitations.");
- printf("On va faire un test.\n");
- printf("Mets ton ecran de pc a 3m de toi et essaye de lire l'heure.\n");
- printf("Joue le jeu par contre hein :p\n\n\n");
- printf("Alors, tu y arrives ?");
- printf("Tape 1 pour Oui et 2 pour Non !");
- scanf("%d", &heure);
- do
- {
- if(heure == 1)
- {
- printf("Ok. Donc ta vue est bonne en effet");
- printf("Malheureusement, on ne peut pas ameliorer sa vue naturelle.\n\n");
- printf("Desole");
- return 1;
- }
- else if(heure == 2)
- {
- printf("Donc ta vue n'est pas bonne. \nRecommence le test en prenant l'option correcte.");
- return 1;
- }
- else
- {
- printf("Tu sais pas repondre ? 1 ou 2 ?\n\n");
- printf("Je te repose la question, reponds-y bien cette fois.");
- }
- }
- while(heure != 1 || 2);
- break;
- case 4:
- printf("Tres bien. Tu peux fermer ce programme jeune arrogant !");
- break;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement