- 博客(3)
- 收藏
- 关注
原创 十进制数转换成任意进制数(二进制、八进制及十六进制等)打印输出
public class Test { public static void main(String[] args) { Scanner in = new Scanner(System.in); int m = in.nextInt(); int n = in.nextInt(); getResult(m, n); ...
2018-11-18 20:00:36
1861
原创 十进制数转换成二进制数打印输出
import java.util.*; class TenToBinary { public static void main(String[] args) { convert(1000); } public static void convert(int n){ List<Integer> list = new ArrayLis...
2018-11-17 20:53:44
604
原创 输出1-100之间所有的素数
class Prime { public static void main(String[] args) { for(int i=1;i<=100;i++){ boolean flag = true; for(int j=2;j<=Math.sqrt(i);j++){ if(i%j=...
2018-11-17 16:24:05
4616
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人