It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Java Forum

can u help me to fix this code

can u help me to fix this code

Postby scor83 on Wed Jan 17, 2007 8:17 am

import javax.swing.JOptionPane;

public class Addition {


public static void main( String args[] )
{
String firstinput;
String secondinput
int input1;
int input2;
int div=0;




firstinput= JOptionPane.showInputDialog( "Enter first integer" );


secondinput =
JOptionPane.showInputDialog( "Enter second integer" );


input1 = Integer.parseInt( firstinput);
input2 = Integer.parseInt( secondinput);
do {
input1= input1 - input2
div=div+1
}


while ( input1=>0);


System.out.println( "input1");
System.out.println( "div");

} // end method main

} // end class Addition
scor83
 
Posts: 0
Joined: Fri Jan 12, 2007 2:09 pm

Who is online

Users browsing this forum: No registered users and 0 guests