I have created a code to convert one currency into group of another currencies in C. How to do the same in java?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I have created a code to convert one currency into group of another currencies in C. How to do the same in java??

In c code i took input as rupee and i got the values of dollar, dinar, pound etc.,

14th Dec 2016, 6:23 AM
Krishna Shashank
Krishna Shashank - avatar
5 Answers
+ 1
C or C++?
14th Dec 2016, 6:24 AM
Towfique Kabir
Towfique Kabir - avatar
+ 1
I assume you used multiplications to get your values right? initialise integers and print out values using the same mathematical terms you used on C....Using java of course
14th Dec 2016, 6:28 AM
Towfique Kabir
Towfique Kabir - avatar
0
in C
14th Dec 2016, 6:25 AM
Krishna Shashank
Krishna Shashank - avatar
0
yes. I've tried but could not do it in java.
14th Dec 2016, 6:29 AM
Krishna Shashank
Krishna Shashank - avatar
0
I was in a doubt whether to use multiple "System.out.println" statements".
14th Dec 2016, 6:30 AM
Krishna Shashank
Krishna Shashank - avatar