herrDeng網內搜尋

自訂搜尋

Ads

2014年4月29日 星期二

Java作業8(用continue改寫)






















請用if-continue改寫

40 則留言:

B10233075 提到...

package hello;

public class hello1 {

public static void main(String[] args) {
int i,sum=0;
for(i=1;i<=100;i++){
if(i%3!=1)continue;
sum+=i;

}
System.out.println(sum);
}
}

B10233091許少威 提到...

package hello;

public class hello1 {

public static void main(String[] args) {
int i,sum=0;
for(i=1;i<=100;i++){
if(i%3!=1)continue;
sum+=i;

}
System.out.println(sum);
}
}

B10233089 提到...

public class hello {
public static void main(String[] args) {
int i, sum=0;
for(i=1;i<=100;i++){
if(i%3!=1)continue;
sum +=i;
}
System.out.println(sum);
}
}

B10233067 提到...

package hello0429;
public class ex1 {
public static void main(String[] args) {
int i,sum=0;
for(i=1;i<=100;i++){
if(i%3!=1)continue;
sum+=i;
}
System.out.println(sum);
}
}

B10233076 提到...

package hello;

public class ex1 {

public static void main(String[] args) {
int i,sum=0;
for(i=1;i<=100;i++){
if(i%3!=1)continue;
sum+=i;

}
System.out.println(sum);

}

}

B10233082 唐偉強 提到...

package fgfdgd;

public class sdfsfs {

public static void main(String[] args) {
int i,sum=0;
for(i=1;i<=100;i++)
{if(i%3!=1) continue;
sum+=i;}
System.out.println(sum);

}

}

b10233068 邱佳函 提到...

package hello;

public class hello429 {

public static void main(String[] args) {
int i;int sum = 0;
for(i=1;i<=100;i++){
if(i%3!=1) continue;
sum+=i;
}
System.out.println(sum);
}
}

B10233062 黃聖評 提到...

package she;

public class sh1 {

public static void main(String[] args) {
int i,sum=0;
for ( i = 1; i<=100;i+=3)
{if(i%3!=1) continue;
sum+=i;}
System.out.println(sum);

}

}

B10233110徐上竣 提到...

package abcd123;

public class bbabba {

public static void main(String[] args) {

int i,sum=0;
for(i=1;i<=100;i++)
{if(i%3!=1)continue;
sum+=i;}
System.out.println(sum);

}

}

B10233084 陳億如 提到...

package hello0429;

public class hello0429 {

public static void main(String[] args) {
int i,sum=0;
for(i=1;i<=100;i++){
if(i%3!=1)continue;
sum+=i;

}
System.out.println(sum);
}
}

B10233063 張宜禎 提到...

package hello0429;

public class ex1 {

public static void main(String[] args) {
int i ,sum=0;
for(i=1;i<=100;i++){
if(i%3!=1)continue;
sum+=i;
}
System.out.println(sum);
}

}

B10233086 張進億 提到...

package sun;

public class sun1 {

public static void main(String[] args) {
// TODO Auto-generated method stub
int i,sum=0;
for(i=1;i<=100;i+=3)
{if(i%3!=1)continue;
sum+=i;}
System.out.println(sum);
}

}

B10233090 提到...

package jssj;

public class hysh {

public static void main(String[] args) {
int i,sum=0;
for (i=1;i<=100;i++){
if (i%3!=1) continue;
sum+=i;
}
System.out.println(sum);
}
}

B10233081 藍立凱 提到...

package ex1;

public class ex1 {

public static void main(String[] args) {
int i, sum=0;
for(i=1;i<=100;i++){
if(i%3!=1)continue;
sum+=i;

}
System.out.println(sum);
}

}

B10233061吳興強 提到...

public class hello {

public static void main(String[] args) {
int i,sum=0;

for(i=1;i<=100;i+=3){
sum+=i;

if (i%3!=1)continue;
}
System.out.println(sum);


}
}

B10233064莊英霆 提到...

public class hello {

public static void main(String[] args) {

int i,sum=0;

for(i=1;i<=100;i+=3){
sum+=i;
if(i%3!=1)continue;
}
System.out.println(sum);

}
}

B10233069連于傑 提到...

package hello429;

public class Ex429 {

public static void main(String[] args) {
int i,sum=0;
for (i=1;i<=100;i++){
if(i%3!=1) continue;
sum+=i;
}
System.out.println(sum);
}
}

B10233092 提到...

package qwe;

public class xzc {

public static void main(String[] args) {
int i,sum=0;
for (i=1;i<=100;i+=3){

if (i%3!=1) continue;
sum+=i;
}
System.out.println(sum);

}

}

b10233080陳芊慈 提到...


public class ccc {

public static void main(String[] args) {
int i,sum=0;
for(i=1;i<=100;i++){
if(i%3!=1)continue;
sum+=i;
}
System.out.println(sum);

}

}

B10233098 陳孟緣 提到...

public class SS {

public static void main(String[] args) {
int i ,sum=0;
for(i=1;i<=100;i++){
if(i%3!=1) continue;
sum+=i;
}
System.out.println(sum);
}
}

黃君寰B10233072 提到...

package gg;

public class aa {

public static void main(String[] args) {
int i, sum=0;
for(i=1;i<=100;i++){
if(i%3!=1) continue;
sum+=i;
}

System.out.println(sum);

}

}

B10233097 邱宥甄 提到...

package zz;

public class ASD {

public static void main(String[] args) {
int i ,sum=0;
for(i=1;i<=100;i++){
if(i%3!=1) continue;
sum+=i;

}
System.out.println(sum);
}
}

B10233070劉思涵 提到...

public class aa {

public static void main(String[] args) {
int i,sum=0;
for(i=1;i<=100;i++){
if(i%3!=1) continue;
sum+=i;
}
System.out.println(sum);

}

}

B10233074許逸憲 提到...

package b10233074;

public class hhhhh {

public static void main(String[] args) {

int i,sum=0;
for(i=1;i<=100;i++)
{if(i%3!=1)continue;
sum+=i;}
System.out.println(sum);
}
}

B10233102 提到...



public class B10233102 {

public static void main(String[] args) {

int i,sum=0;
for(i=1;i<=100;i++)
{if(i%3!=1)continue;
sum+=i;}
System.out.println(sum);

}

}

B10233103 提到...


public class B10233102 {

public static void main(String[] args) {

int i,sum=0;
for(i=1;i<=100;i++)
{if(i%3!=1)continue;
sum+=i;}
System.out.println(sum);

}

}

B10233096 提到...


public class B10233102 {

public static void main(String[] args) {

int i,sum=0;
for(i=1;i<=100;i++)
{if(i%3!=1)continue;
sum+=i;}
System.out.println(sum);

}

}

Y10211027張君弘 提到...

package test0429;

public class hello {

public static void main(String[] args) {

int i,sum=0;{

for (i=1;i<=100;i++){

if(i%3!=1)continue;
sum += i;

}
System.out.println(sum);
}
}
}

Y10211064 黃耀葦 提到...

package she;

public class sh1 {

public static void main(String[] args) {
int i,sum=0;
for ( i = 1; i<=100;i+=3)
{if(i%3!=1) continue;
sum+=i;}
System.out.println(sum);

}

}

B10233108 林宣瑋 提到...

package test0429;

public class LaoLin0429 {

public static void main(String[] args) {

int i,sum=0;{

for (i=1;i<=100;i++){

if(i%3!=1)continue;
sum += i;

}
System.out.println(sum);
}
}
}

Unknown 提到...

public static void main(String[] args) {
// TODO Auto-generated method stub

int i,sum=0;
/* for(i=1;i<=100;i+=3)
sum+=i;
*/
for(i=1;i<=100;i++){
if(i%3!=1) continue;
sum+=i;
}
System.out.println(sum);
}

}

B10233066張哲毓 提到...

package test0429;

public class hello0429 {

public static void main(String[] args) {

int i,sum=0;{

for (i=1;i<=100;i++){

if(i%3!=1)continue;
sum += i;

}
System.out.println(sum);
}
}
}

b9834164 提到...

public static void main(String[] args) {
// TODO Auto-generated method stub

int i,sum=0;
/* for(i=1;i<=100;i+=3)
sum+=i;
*/
for(i=1;i<=100;i++){
if(i%3!=1) continue;
sum+=i;
}
System.out.println(sum);
}

}

林政儒10233071 提到...

package test0429;

public class hello0429 {

public static void main(String[] args) {

int i,sum=0;{

for (i=1;i<=100;i++){

if(i%3!=1)continue;
sum += i;

}
System.out.println(sum);
}
}
}

b10233087 黃少洋 提到...

package abc;

public class abc123 {

public static void main(String[] args) {
int i,sum=0;
for ( i = 1; i<=100;i+=3)
{if(i%3!=1) continue;
sum+=i;}
System.out.println(sum);

}

}

b10233107 蔡育霖 提到...

package test0429;

public class hello0429 {

public static void main(String[] args) {

int i,sum=0;{

for (i=1;i<=100;i++){

if(i%3!=1)continue;
sum += i;

}
System.out.println(sum);
}
}
}

B10233065 提到...

package hello429;

public class hello {

public static void main(String[] args) {
int i;int sum = 0;
for(i=1;i<=100;i++){
if(i%3!=1) continue;
sum+=i;
}
System.out.println(sum);
}

}

B10233095李元宏 提到...

public static void main(String[] args) {
System.out.println("hello");
int i,sum=0;
for(i=1; i<=100; i+=3)
sum+=i;
System.out.println(sum);
}

}

B10233073 楊博宇 提到...

package rgrgfa;

public class gragar {

public static void main(String[] args) {
int i,sum=0;
for(i=1;i<=100;i++)
{if(i%3!=1) continue;
sum+=i;}
System.out.println(sum);

}

}

B10233070劉思涵 提到...

public class hello {

public static void main(String[] args) {
int i,sum=0;

for(i=1;i<=100;i+=3){
sum+=i;

if (i%3!=1)continue;
}
System.out.println(sum);


}
}

Related Posts Plugin for WordPress, Blogger...

熱門文章