Dollar to Naria Conversion using Java

Performing a calculation such as a conversion with java,using the Scanner(system.in).

First you declare the Datatype making it #Final and assign a value to it, so as to avoid magic numbers. Then instantiate a class and assign a variable to it(Scanner is used to collect data from the console) and input few lines of code.

Below are the lines of code

image.png

The Result

Inputting different numbers to get its equivalent in Naria

image.png

image.png

Thank you