/* * Programme d'affichage du plus grand nombre parmis 3 propositions * Par Florian Goussot * BTS CIEL 2e année * Fait le 10/09/2024 à Nancy */ #include #include using namespace std; int main(void) { int a, b, c; char key; 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); if (b < c) { b = c; } if (a < b) { a = b; } printf("Le nombre le plus grand est %d", a); printf("\n\nPour quitter, appuyez simultanément sur CTRL+ALT+SHIFT+ALTGR+... juste sur Echap en fait ;)\n\n"); key = _getch(); if (key == 27) { return 0; } else { main(); } }