File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 77 **/
88import java .util .Scanner ;
99
10- public class OctalToHexadecimal {
10+ public class OctalToHexadecimal {
1111
1212 /**
1313 + + * This method converts a Octal number to
@@ -55,9 +55,9 @@ public static void main ( String args[]) {
5555 Scanner input = new Scanner (System .in );
5656 System .out .print ("Enter the Octal number: " );
5757 String oct = input .next (); //Take octal number as input from user in a string
58- int decimal = OctToDec (oct ); //Pass the octal number to function and get converted deciaml form
59- String hex = DecimalToHex (decimal ); //Pass the decimla number to function and get converted Hex form of the number
60- System .out .println ("The Hexadecimal equivalant is: " +hex );
58+ int decimal = OctToDec (oct ); //Pass the octal number to function and get converted deciaml form
59+ String hex = DecimalToHex (decimal ); //Pass the decimla number to function and get converted Hex form of the number
60+ System .out .println ("The Hexadecimal equivalant is: " +hex );
6161 }
6262}
6363
You can’t perform that action at this time.
0 commit comments