Can someone help me with my code... Reply me ASAP
You need to be way more specific. Language? What are you trying to do? Post your code
It is a java code.. I need to convert octal to decimal. The question is as follows Write a program in JAVA that can handle Octal to Decimal conversions. The number is taken as user input at runtime. Your program should validate that the number typed is a valid octal number. You cannot use Integer or any of the class from the util package except for the Scanner class.
There are no errors while compiling but the answer is not coming right... Suppose octal number 1336 . Its decimal equivalent is 734... But my program is giving answer 222.0
@hba
please wait.
ok .. i am here waiting for u reply
.............
for(int i=0;i<temp;i++) This seems to be the problem. Why is the test condition i<temp? It should be for(int i=0;temp>0;i++)
Join our real-time social learning platform and learn together with your friends!