package test;
public class GenerateNum {
public static void main(String[] args) {
//定义为long类型,需在数值后面加字符l
//int count=0;
int count=0;
for(long i=11200000018l;i<=11200000514l;i++){
count++;
System.out.println(i);
if(i==11200000514l){
System.out.println(count);
}
}
}
}
时间: 2024-10-01 07:17:13