I need help for this!!! please reply ASAP
my program doesn't work: pls give the needed info so that i can make this thing work...thank you very much for your kindness...
package ch4_32;
import javax.swing.JOptionPane;
class ch4_32c {
public static void main( String args[] ) //
{
int x, Cntr1, Cntr2;//
String how_many;//
double fact, result, power;//
Cntr1 = 1;//
fact = 1; //
result = 1;//
how_many =
JOptionPane.showInputDialog( "Enter interger: ");
how_many = Integer.parseInt( x );
if ( x > 11 ) {
JOptionPane.ERROR_MESSAGE( " Error Message: " );
}
else if ( x = 0 )
JOptionPane.INFORMATION_MESSAGE( " Result: " );
}
else if {
while ( Cntr1 < 12 ) {
Cntr2 = 1;
power = 1;
while ( Cntr2 <= Cntr1 ) {
power = power * x;
fact = fact * Cntr2;
++Cntr2;
}
result = result + power / fact;
++Cntr1;
}
JOptionPane.showMessageDialog( null,
"Result is " + result, "Factorial",
JOptionPane.INFORMATION_MESSAGE );
System.exit( 0 );
}
}

