Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   LOOP PROBLEM-not exiting do while loop (http://www.go4expert.com/forums/loop-exiting-loop-t26411/)

drpuja 1Aug2011 09:44

LOOP PROBLEM-not exiting do while loop
 
if(ch=='L')
{
do
{
System.out.println("Would u like to buy the Shirt");
System.out.println("Press 1 - yes , press 0 - no");
abc = Integer.parseInt(in.readLine());
count++;
System.out.println("Tell the amount");
amt=Double.parseDouble(in.readLine());
s_amt=s_amt+amt;
}
while(abc!=0);


All times are GMT +5.5. The time now is 03:49.