Method doesnt return
Hi, I am trying to do a simple calculator but my method doesnt return variable suma. How should I fix that? the code:
13 Replies
what method?
Dzialanie1 and Dzialanie2
looks to me they do return it
as seen in this line
return suma;
yeah I thought this way too but em wait I will send ss
but you never assigned what it returns to a variable
ow
so ur just discarding the returned value
how can I do that?
int foo = Dzialanie2(suma, znak, liczba1);
or u can even overwrite a variable's value
suma = Dzialanie2(suma, znak, liczba1);
em okay I will try it
I will respond in a sec
It works!
Thank u
I should now somehow close this disccussion or just leave it?
u can close it
okay