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();
    }

}

 

相关文章:

  • 2021-07-21
  • 2021-08-27
  • 2021-10-05
  • 2021-08-31
  • 2022-03-05
  • 2021-09-01
  • 2021-09-01
  • 2021-12-27
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2021-07-13
  • 2021-11-23
  • 2021-11-23
  • 2022-02-25
相关资源
相似解决方案