最近題目越做越隨性了(汗)

----------------------------------------------------------------------------------------------
public class ex6_5{
 public static void main(String[] alio){
  
 int n = 100;
 for(int i=1;i<=100;i++){
  int y = i%5;
  if(y==0)
   System.out.println(i);
  int x = i%7;
  if(x==0&&y!=0)
   System.out.println(i);
 } 
 }
}

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 steven70101 的頭像
    steven70101

    老人家的舊書房

    steven70101 發表在 痞客邦 留言(0) 人氣()