import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int [] arr = new int[N];
for(int i=0;i<=arr.length-1;i++)
{
arr[i] = sc.nextInt();
}
Conversion(arr);
}
public static void Conversion(int [] arr){
int power = 1;
int ans = 0;
for(int i=0; i<=arr.length-1;i++){
int rem = arr[i] % 10;
ans = ans + rem * power;
//next line
arr[i] = arr[i] / 10;
power = power * 2;
System.out.println(ans);
}
}
}
can you hlp me with the code and explaination of how to print one specific conversion at a time then moves to another error
ASAP