這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
public class bbb { public static void main(String[] args) { int sum=0; for(int x=1;x<=100;x++){ if(x%3==0||x%7==0) { sum=sum+x; } }System.out.print(sum); }}
class jjj{ public static void main(String [] arg) { int sum=0; for (int i=1;i<=100;i++) { if (i%3==0||i%7==0) { sum=sum+i; } } System.out.println(sum); }}
class mod{ public static void main(String[]argv){ int sum=0; for(int x=1;x<=100;x++){ if(x%3==0||x%7==0) sum=sum+x; } System.out.print(sum); }}
class kk { public static void main(String[]arg) { int sum=0; for(int i=1;i<=100;i++) if(i%3==0||i%7==0) sum=sum+i; System.out.println(sum); }}
pclass test{ public static void main(String[]argv) { int sum=0; for(int x=1;x<=100;x++) if(x%3==0||x%7==0) { sum=sum+x; } System.out.println(sum); }}
class W{public static void main(String[]arg){int sum=0;for(int i=1;i<=100;i++){sum=sum+i*i;}System.out.println(sum);}}
class mod{public static void main(String[]argv){int sum=0;for(int x=1;x<=100;x++)if(x%3==0||x%7==0){sum=sum+x;}System.out.println(sum);}}
pclass hello{public static void main(String[]argv){int sum=0;for(int x=1;x<=100;x++)if(x%3==0||x%7==0){sum=sum+x;}System.out.println(sum);}}
class mod{ public static void main(String [] argv) { int sum=0; for(int x=1;x<=100;x++) if(x%3==0 || x%7==0) { sum=sum+x; } System.out.println(sum); }}
public class abc { public static void main(String[] args) { int sum=0; for(int x=1;x<=100;x++){ if(x%3==0||x%7==0) { sum=sum+x; } }System.out.print(sum); }}
張貼留言
13 則留言:
public class bbb
{
public static void main(String[] args)
{
int sum=0;
for(int x=1;x<=100;x++){
if(x%3==0||x%7==0)
{
sum=sum+x;
}
}System.out.print(sum);
}
}
class jjj
{
public static void main(String [] arg)
{
int sum=0;
for (int i=1;i<=100;i++)
{
if (i%3==0||i%7==0)
{
sum=sum+i;
}
} System.out.println(sum);
}
}
class mod{
public static void main(String[]argv){
int sum=0;
for(int x=1;x<=100;x++){
if(x%3==0||x%7==0)
sum=sum+x;
}
System.out.print(sum);
}
}
class kk
{
public static void main(String[]arg)
{
int sum=0;
for(int i=1;i<=100;i++)
if(i%3==0||i%7==0) sum=sum+i;
System.out.println(sum);
}
}
pclass test{
public static void main(String[]argv)
{
int sum=0;
for(int x=1;x<=100;x++)
if(x%3==0||x%7==0)
{
sum=sum+x;
}
System.out.println(sum);
}
}
class W{
public static void main(String[]arg){
int sum=0;
for(int i=1;i<=100;i++)
{
sum=sum+i*i;
}
System.out.println(sum);
}
}
class mod{
public static void main(String[]argv)
{int sum=0;
for(int x=1;x<=100;x++)
if(x%3==0||x%7==0)
{sum=sum+x;
}
System.out.println(sum);
}
}
class mod{
public static void main(String[]argv)
{int sum=0;
for(int x=1;x<=100;x++)
if(x%3==0||x%7==0)
{sum=sum+x;
}
System.out.println(sum);
}
}
pclass hello{
public static void main(String[]argv)
{
int sum=0;
for(int x=1;x<=100;x++)
if(x%3==0||x%7==0)
{
sum=sum+x;
}
System.out.println(sum);
}
}
pclass hello{
public static void main(String[]argv)
{
int sum=0;
for(int x=1;x<=100;x++)
if(x%3==0||x%7==0)
{
sum=sum+x;
}
System.out.println(sum);
}
}
class mod
{
public static void main(String [] argv)
{
int sum=0;
for(int x=1;x<=100;x++)
if(x%3==0 || x%7==0)
{
sum=sum+x;
}
System.out.println(sum);
}
}
public class abc
{
public static void main(String[] args)
{
int sum=0;
for(int x=1;x<=100;x++){
if(x%3==0||x%7==0)
{
sum=sum+x;
}
}System.out.print(sum);
}
}
class mod{
public static void main(String[]argv)
{int sum=0;
for(int x=1;x<=100;x++)
if(x%3==0||x%7==0)
{sum=sum+x;
}
System.out.println(sum);
}
}
張貼留言