diff --git a/CPP/Source1.cpp b/CPP/Source1.cpp index f408e9a..21c7a2c 100644 --- a/CPP/Source1.cpp +++ b/CPP/Source1.cpp @@ -6,13 +6,15 @@ */ #include #include +#include using namespace std; int main(void) { int a, b, c; - char key; do { + system("cls"); + system("color 0a"); printf("\t\t\tLe plus grand\n"); printf("Entrez trois nombres entiers séparés par des espaces : "); scanf_s("%d %d %d", &a, &b, &c); @@ -24,6 +26,6 @@ int main(void) { } printf("Le nombre le plus grand est %d", a); printf("\n\nPour quitter, frappez la touche en haut à gauche de votre clavier ;)\n\n"); - key = _getch(); - } while (key != 27); + } while (_getch() != 27); + return 0; } \ No newline at end of file