package ltb6w1;
import java.io.*;
public class TestMod {
String st;
int c;
InputStreamReader is=new InputStreamReader(System.in);
BufferedReader bf=new BufferedReader(is);
public TestMod() throws IOException {
System.out.println("请输入整数:");
while(true) {
st=bf.readLine();
if("over".equals(st)) {
System.out.println("哈哈,退出了。");
break;
}
c=Integer.parseInt(st);
System.out.println("C取余是:"+c%1000);
}
}
public static void main(String[] args) throws IOException {
new TestMod();
}
}