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,
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.
|