1
0
Fork 0
mirror of https://codeberg.org/DansLeRuSH/c-plus-plus-exercises.git synced 2024-05-18 08:14:57 +00:00

Display the maximum on several entered numbers

This commit is contained in:
Franck ALBARET 2018-10-22 07:34:38 +00:00
parent 71c946ea01
commit 9d46950a77

View file

@ -8,11 +8,11 @@
int i=0;
int Max=0;
clrscr();
puts ("entrez un chiffre, entrez un zéro pour arrêter. \n");
puts ("Entrez un chiffre, entrez un zéro pour arrêter. \n");
scanf("%i",&Nbr);
while (Nbr!=0)
{
puts ("entrez un chiffre, entrez un zéro pour arrêter. \n");
puts ("Entrez un chiffre, entrez un zéro pour arrêter. \n");
scanf("%i",&Nbr);
if (Nbr>Max)
{