2099

作者: 好名字_4d27 | 来源:发表于2020-02-26 15:40 被阅读0次
    image.png
    
    import java.util.Scanner;
    public class Main {
        public static void main(String[] args) {
            int a,b,c,i;
            Scanner sc = new Scanner(System.in);
            while (sc.hasNext()) {
                  a = sc.nextInt();
                  b = sc.nextInt();
    
                if(a==0) break;
                for (c= i = 0; i <100 ; i++) {
                    if((a*100+i)%b==0) {
                        if (c++==0)
                            System.out.printf("%02d",i);
                        else
                            System.out.printf(" %02d",i);
    
                    }
                }
                System.out.println();
    
            }
        }
    }
    

    相关文章

      网友评论

          本文标题:2099

          本文链接:https://www.haomeiwen.com/subject/szmfjctx.html