Profile image

I want to make a fuel light | Yakit lambasi yapmak istiyorum

315 Cemo43  2.9 years ago

(TR) Ben bir yakit lambasi yapmak istiyorum. Lambaya girdi olarak Fuel <= 10 yapiyorum ama biri çalisiyor biri çalismiyor bence sorunsuz çalismasi lazim. Yazdigim kodun anlami yakit 10'dan küçük esittir ise lambayi aç ama neden çalismiyor anlamiyorum ama bazen oluyor.Kodu bitirdikten sonra hangi isareti yazmaliyim baska bir kod, çünkü yakit bittiginde isigin sönmesini istiyorum.Bunun için ne yapmaliyim? yardimci olursaniz sevinirim :)

(EN) I want to make a fuel light. as input to the light Fuel <= 10 I do, but one works and one does not work, I think it should work smoothly. The meaning of the code I wrote is that if the fuel is less than 10, turn on the light, but I do not understand why it does not work, but sometimes it does.After finishing the code, which sign should I use to write another code, because when the fuel runs out I want the light to go out.What should I do for this? I will be glad if you help me :) sorry for my bad english