so , while making a code in java there is a problem that variable should initialized so that it work in the code , but I want to use the variable without initializing any value to it ,
class Solution{
public static void main(String []argh){
int a;
int b ;
int n ;
Scanner in = new Scanner(System.in);
int t = in.nextInt();
for(int i=0;i<t;i++){
a = in.nextInt();
b = in.nextInt();
n = in.nextInt();
}
int sum=0;
for (int i =0;i<=n; i=i*2)
{
sum=a+i*b;
System.out.print(sum);
}
}
}
the above code is throwing the error that the variable is not initialized , but i don't want to initialize it and i want to use them again and again without initializing again and again.