Help with Float
#7

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.
Reply


Messages In This Thread
Help with Float - by mokinys98 - 26.04.2018, 11:13
Re: Help with Float - by Xportaler - 26.04.2018, 11:17
Re: Help with Float - by mokinys98 - 26.04.2018, 12:00
Re: Help with Float - by CodeStyle175 - 26.04.2018, 12:14
Re: Help with Float - by mokinys98 - 26.04.2018, 12:24
Re: Help with Float - by Bruno13 - 26.04.2018, 13:08
Re: Help with Float - by AdamsLT - 26.04.2018, 13:35
Re: Help with Float - by mokinys98 - 26.04.2018, 14:05
Re: Help with Float - by AdamsLT - 26.04.2018, 14:21
Re: Help with Float - by mokinys98 - 26.04.2018, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)