class JiSuan
{
public static void main(String[] args)
{
//int getCount(1,100);
//print();
//println();
System.out.println(getCount(1,100));
//System.out.println(count);
}
public static int getCount(int a,int b)
{
int count=0;
int x;
for( x =a;x<=b;x++)
{
if( x%3=0)
{
System.out.print(x+" ");
count++;
}
return count;
}
}
}
|
|