26.04.2018, 13:35
You are not really assigning anything to the variable.
== is used for checks,
= is used for assigning values.
Change this:
kof == 2; <- notice how you placed two equality operators (=).
To this:
kof = 2.0; <- only one =. Also, I replaced 2 with 2.0 since it is a float (not necessary but I feel it adds clarity and stuff to your code).
I'm surprised this part of the code doesn't give you any warnings or erros.
Be to, koeficientas, o ne koficijentas.
== is used for checks,
= is used for assigning values.
Change this:
kof == 2; <- notice how you placed two equality operators (=).
To this:
kof = 2.0; <- only one =. Also, I replaced 2 with 2.0 since it is a float (not necessary but I feel it adds clarity and stuff to your code).
I'm surprised this part of the code doesn't give you any warnings or erros.
Be to, koeficientas, o ne koficijentas.

