import java.util.Scanner;
public class stack {
/**
* @param args
*/
public static void main(String[] args) {
int result ;
int output ;
Scanner num = new Scanner(System.in);
int input = num.nextInt();
for(int j = 0;j<input;j++)
{
int output1 = 0;
output = num.nextInt();
for(int i = 0;i<output;i++)
{
if(output == 1 - 3000){
output = output1;
return;
}
if(output!=1-3000){
if(output ==('+')){
result = (output1 + output1);
result++ ;
System.out.println(result);
}
else if(output==('-')){
result = (output - output);
result++;
System.out.println(result);
}
else if(output == ('*')){
result = (output * output);
result++;
System.out.println(result);
}
}
}
}
}
}
Please Tell me
Why error.
input
9
7 2 – 5 2 * 36 - *
output
-130