Octal to Decimal

We were given the sample output for the question:

- OUTPUT -

Please enter your Octal number: 416

Octal 416 is equal to Decimal 270

- END OUTPUT -

Do I need to use array?

I was able to solve this but i have to enter one number at a time (entering '4' and press 'Enter' - entering '1' and press 'Enter') which means my number will looks like this in output:

Please enter your octal number: 4
1
6

Octal 416 is equal to Decimal 270.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion