Skip to content

print 2,4,6 to 40 use arry #5

@jsrhwyf

Description

@jsrhwyf

package zuoye3;

public class zuoye33 {
public static void main(String[]args) {
int [] scores ;

scores=new int[20];
int len=scores.length;
int i;
for(i=1;i<=len;i++) {
	
	scores[i-1]= 2*i;
System.out.println(scores[i]);

}

}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions