Question: Devise a code in javascript to receive a positive integer and output each digit, from right to left, after it has been multiplied by 2

Devise a code in javascript to receive a positive integer and output each digit, from right to left, after it has been multiplied by 2. For instance, if the input is 692, the program should output 4,18,12. As another example, if thenumber is 135429 the program should out put 18,4,8,10,6, and 2.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!