#Shopping Math question

1 messages · Page 1 of 1 (latest)

grim kiln
#

Iam doing a shopping question from my course but i cant figure out how to get the last pre last line right in the ''Systym.out.Printf" where is it the procentage sign iAM TRYING TO GET A NUMBER OUT OF IT but iam getting an error

finite cradleBOT
#

<@&987246883653156906> please have a look, thanks.

grim kiln
#

idek how to fix it

silver topaz
silver topaz
grim kiln
#

no bro its still not working

#

with %f

#

do u know what wrong

silver topaz
grim kiln
silver topaz
#

oh yes

#

like I said before, don't ignore the warnings

#

you didn't pass the value to print

grim kiln
#

so my value was too little so it couldnt print

silver topaz
#

it couldn't print your value

#

because you din't ask it to print your value

grim kiln
#

so i have to say system.out.println?

silver topaz
#

no

grim kiln
#

or how could i do it because iam new to java

silver topaz
#

you have to give it what you want to print

#

System.out.printf("You have %2f leva left");

#

how does it know which value to print ?

#

@grim kiln

grim kiln
#

the float number the price?

silver topaz
grim kiln
#

ohh ya i have to put it down i just remebered bro thanks