herrDeng網內搜尋

自訂搜尋

Ads

2016年6月14日 星期二

練習1

4+7+10+.....+103=?

10 則留言:

B10433044吳玉瀚 提到...

public class S01 {
public static void main(String[] args) {
int sum=0;
for(int i=4;i<=103;i+=3)sum+=i;
System.out.println(sum);
}
}
Gute Sache
Gute Sach
Gute Sac
Gute Sa
Gute S
Gute
Gute
Gut
Gu
G

B10433044吳玉瀚 提到...

public class S01 {
public static void main(String[] args) {
int sum=0;
for(int i=4;i<=103;i+=3)sum+=i;
System.out.println(sum);
}
}
1819

B1043342 提到...

public class godoftttt {

public static void main(String[] args) { int i, sum=0; sum = 0 ; i = 4; while(i<=103){ sum+=i; i=i+3; } System.out.println(sum); } }

b10433014 提到...

public class jsxcaq {

public static void main(String[] args) { int i,sum=0; sum=0 ; i=4; while(i<=103){ sum +=i; i=i+3; } System.out.println(sum); }

李佳明B10433023 提到...

public class A1 {

public static void main(String[] args) { int i , sum=0; for(i=4 ; i<=103 ; i+=3) sum=sum+i; System.out.print(sum); } }

B10433034陳智揚 提到...

public class S01 {
public static void main(String[] args) {
int sum=0;
for(int i=4;i<=103;i+=3)sum+=i;
System.out.println(sum);
}
}
1819

B10433040葉峻宇 提到...

public class EX1 {

public static void main(String[] args) { int i , sum=0; for(i=4 ; i<=103 ; i+=3) sum=sum+i; System.out.print(sum); } }

B10433039游叡恩 提到...

public class godoftttt {

public static void main(String[] args) { int i, sum=0; sum = 0 ; i = 4; while(i<=103){ sum+=i; i=i+3; } System.out.println(sum); } }

B10433034陳智揚 提到...

public class A1 {

public static void main(String[] args) { int i , sum=0; for(i=4 ; i<=103 ; i+=3) sum=sum+i; System.out.print(sum); } }

B10133157 蔡翔杰 提到...

public class godoftttt {

public static void main(String[] args) { int i, sum=0; sum = 0 ; i = 4; while(i<=103){ sum+=i; i=i+3; } System.out.println(sum); } }

Related Posts Plugin for WordPress, Blogger...

熱門文章