import java.util.Scanner; |
class A |
{ |
public static void main(String[] args) |
{ |
Scanner s= new Scanner(System.in); |
System.out.println( "请输入数字:" ); |
int a=s.nextInt(); |
for ( int i= 1 ;i<=a/ 2 ;i++) |
{ |
if (a% i== 0 ) |
{ |
System.out.println(i+ " " ); |
} |
} |
System.out.println(); |
} |
} |
by: 发表于:2017-06-21 17:23:15 顶(0) | 踩(0) 回复
??
回复评论