class Octual {
public static void main(String[] args){
for (int i =1;i<=100 ;i++ ) {
int s =0; int[] arr = new int[10];
for (int j =i;j>0 ;j/=8 ) {
s++;
arr[s-1]= j%8;
}
System.out.print(0);
for (int x = s-1;x>=0 ;x-- ) {
System.out.print(arr[x]);
}
System.out.println("");
}
}
}
|
|