CODING:
public class ConvertIntToOctalExample
{
public static void main(String[] args)
{
int i = 27;
String strOctalNumber = Integer.toOctalString(i);
System.out.println("Convert decimal number to octal number example");
System.out.println("Octal value of " + i + " is " + strOctalNumber);
}
}
OUTPUT:
public class ConvertIntToOctalExample
{
public static void main(String[] args)
{
int i = 27;
String strOctalNumber = Integer.toOctalString(i);
System.out.println("Convert decimal number to octal number example");
System.out.println("Octal value of " + i + " is " + strOctalNumber);
}
}
OUTPUT:
Convert decimal number to octal number example
octal value of 27 is 33
Convert decimal number to octal number example
octal value of 27 is 33
Comments
Post a Comment