+ 2

# A bartender sold 64 bottles beer & 23 bottles whisky, how many bottles did he sell? calculate?

I ma newbie. Please guide

4 Antworten

+ 2

I know that but how to calculate in java code?

+ 2

Take two variables and assign these values into those.. If those are inputs then take by a scanner and assign to variables..
Calculate sum of two variables and display output. .
If you say still how, then complete lessons of variables in java, you can find there how to do by samples, try after this...
You can share your try here, if not successful....

0

64+23=87

0

Thank you for the info. Appreciated