#include<stdio.h>
int main (){
int nletti = 0, massimo;
scanf("%d",&nletti);
if(nletti < 0)
printf("-5");
else{
massimo = nletti;
while(nletti >= 0) {
scanf("%d", & nletti);
if(massimo <= nletti)
massimo=nletti;
}
printf("%d",massimo);
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: