View Single Post
  #3 (permalink)  
Old 05-13-2008, 06:38 AM
sukatoa's Avatar
sukatoa sukatoa is offline
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Quote:
and how do i say someting in a loop but one part of the sentence changes each time? like saying "you have entered the number for box 1" then after entering another integer it says "you have entered the number for box 2"?
Pseudocode,

Code:
while( allowed ){ var = user's input if(isInteger(var)) System.out.printf("You've entered %s \n",var); else set not allowed; }
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote