Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   How can I make Alice multiply numbers? (http://www.alice.org/community/showthread.php?t=10517)

 HalBen18 02-25-2014 02:39 PM

How can I make Alice multiply numbers?

I am trying to get Alice to do Einstein's formula. I have it set to have the user enter the mass and I have set up the speed of light squared. However, I can't seem to find a function where I can have the two multiplied. mass times speed of light. Is there a way to do this?

 MrMoke 02-26-2014 09:07 AM

Sure

[QUOTE=HalBen18;54049]I am trying to get Alice to do Einstein's formula. I have it set to have the user enter the mass and I have set up the speed of light squared. However, I can't seem to find a function where I can have the two multiplied. mass times speed of light. Is there a way to do this?[/QUOTE]

Once you set the value of a variable to a specific number in the code such as "set burger to 2", you can click the down arrow next to the 2, then find math in the dropdown, and go from there.

 HalBen18 02-26-2014 03:13 PM

Thank you!

Thank you for your help! I finished it, no problem, thanks to you. :)

 All times are GMT -5. The time now is 02:20 AM.