Hi I was wondering how do you write this in an if() statment in java?
"If either polonium dips below 0.75, spider_venom goes above 0.52, or perhaps sarin dips below 0.66, increase paracetamol by 0.01"
I wrote this but it is wrong.
if((polonium < 0.75 && spider_venom > 0.52) || (sarin < 0.66))
{
paracetamol += 0.01
}
Aucun commentaire:
Enregistrer un commentaire