输出100以内所有能被5整除的数
package a;
public class zhengchu
{
public static void main(String[] args)
{
zhengchu a=new zhengchu();
System.out.println(zhengchu.b(0));
}
public static int b(int ai)
{
int[]a1=new int[100];
for(ai=0;ai<=a1.length;ai++)
if(ai%5==0)
return ai;
}
PS:老师要求用class编写
package a;
public class zhengchu
{
public static void main(String[] args)
{
zhengchu a=new zhengchu();
System.out.println(zhengchu.b(0));
}
public static int b(int ai)
{
int[]a1=new int[100];
for(ai=0;ai<=a1.length;ai++)
if(ai%5==0)
return ai;
}
PS:老师要求用class编写