#Math Problems with java

1 messages · Page 1 of 1 (latest)

untold depot
#

Hello, i m java beginner is it possible to solve math problems with java ;
"there are small and big birds in a petshop, big birds is 2 times expensive than small ones. customer bought 5 big and 3 small birds. if he would buy 3 big and 5 small he would ve paid 12 usd lesser. what is the small bird's price?" like that one
i don't know how i can work with x (unknown) values yet. or idk either possible to work like that either.
What should be approach to solve that kind of task?

brave marsh
#

It would probably be easier to use regular math for something like that.

untold depot
#

i asked from general chat and some douchebgs tried to bully me.

#

i can easily solve with paper and pen but idk possible to solve with java?

#

at least i can't solve with the knowledge i learnt so far.

brave marsh
untold depot
#

@brave marshthanks. it is possible but not good idea if i get it right😅 . there are math.pow thing there idk those things. when i asked from general chat some of those savages said it is easy to make it.

#

probably they couldn't get what i ask