This commit is contained in:
Manan-Rathi
2021-10-04 23:01:06 +05:30
committed by GitHub
parent a352a4905e
commit 374938c3f8
4 changed files with 6 additions and 6 deletions

View File

@@ -51,10 +51,10 @@ public class OctalToHexadecimal {
// Take octal number as input from user in a string
String oct = input.next();
// Pass the octal number to function and get converted deciaml form
// Pass the octal number to function and get converted decimal form
int decimal = octToDec(oct);
// Pass the decimla number to function and get converted Hex form of the number
// Pass the decimal number to function and get converted Hex form of the number
String hex = decimalToHex(decimal);
System.out.println("The Hexadecimal equivalant is: " + hex);
input.close();