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