'' Var name = ""
Var age = 15
Var money = 100
If ( age < 17 )
Console.log ( 'drink tea')
Else
Console.log ( 'drink wine')
Tea price about $5
And wine price about $150
If ( money < 5 ) // if we drink tea
Console.log( 'your money not enough')
Else
Console.log(' your money enough , your money left + (money - 5 ) // price of tea
If (money < 150) // if we drink wine
Console.log('your money not enough')
Else
Console.log('your money enough , your money left + (money
- 150) // price of wine
// can someone fix this statement or is there any affective method to make it short???? //
Aucun commentaire:
Enregistrer un commentaire