How to convert dollar to Jod by php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to convert dollar to Jod by php

22nd May 2020, 12:41 PM
Eng.Hashim Haimour
Eng.Hashim Haimour - avatar
3 Answers
+ 1
What do you mean, a code? You have completed the PHP course, all you need to do, is: Get the amount of dollars you want to convert, you can ask the user with a form and a text box, and then all you need to do is echo the number times 0.71
22nd May 2020, 1:12 PM
coddy
coddy - avatar
0
If you don't care about the jod value changing after a while, you can simply do dollars * 0.71 to get value of jods, which is the current value.
22nd May 2020, 12:59 PM
coddy
coddy - avatar
0
I wan't a code for do this
22nd May 2020, 1:09 PM
Eng.Hashim Haimour
Eng.Hashim Haimour - avatar