#include <stdio.h>
//AYDA FILICHE 4SC - ESERCIZIO 3
int main(void) {
int eta;
float pr;
scanf ("%d%f", &eta
, &pr
); if (eta < 18) {
pr = pr*0.9;
printf ("il prezzo è di %.2f Euro", pr
); } //funzione %.2f cercata online
else if (eta >=65){
pr = pr*0.8;
printf ("il prezzo è di %.2f Euro", pr
); } //funzione %.2f cercata online
else if(eta>=18&&eta<65){
printf ("non hai lo sconto"); } else if (eta
< 0) { printf ("età non valida"); return 0;
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8vQVlEQSBGSUxJQ0hFIDRTQyAtIEVTRVJDSVpJTyAzCmludCBtYWluKHZvaWQpIHsKICAgICAgIGludCBldGE7CiAgICAgICBmbG9hdCBwcjsKICAgc2NhbmYgKCIlZCVmIiwgJmV0YSwgJnByKTsKICAgaWYgKGV0YSA8IDE4KSB7CiAgIHByID0gcHIqMC45OwogICBwcmludGYgKCJpbCBwcmV6em8gw6ggZGkgJS4yZiBFdXJvIiwgcHIpOyB9Ci8vZnVuemlvbmUgJS4yZiBjZXJjYXRhIG9ubGluZQplbHNlIGlmIChldGEgPj02NSl7CnByID0gcHIqMC44OwpwcmludGYgKCJpbCBwcmV6em8gw6ggZGkgJS4yZiBFdXJvIiwgcHIpOyB9Ci8vZnVuemlvbmUgJS4yZiBjZXJjYXRhIG9ubGluZQplbHNlIGlmKGV0YT49MTgmJmV0YTw2NSl7CnByaW50ZiAoIm5vbiBoYWkgbG8gc2NvbnRvIik7IH0KZWxzZSBpZiAoZXRhIDwgMCkgeyBwcmludGYgKCJldMOgIG5vbiB2YWxpZGEiKTsKcmV0dXJuIDA7IAp9Cn0=