标签:数字 alt 不能 课程总结 成员 instr ++ img i++
public class Narcissus{
public static void main(String[] args){
for(int i = 100;i<999;i++){
int a = i%10;
int b =( i/10)%10;
int c = i/100;
if(i == Math.pow(a,3) + Math.pow(b,3 + Math.pow(c,3){
System.out.println(i);
}
}
}
}
public class Value{
public static void main(String args[]){
int sum = 0,a =1;
for(int i = 13;i <=1003;i += 10){
sum += i*a;
a = -a;
}
System.out.println(sum );
}
}
public class Jie{
public static void main(String args[]){
long sum = 1;
long func = 1;
for(int i = 2;i<=20;i++){
func = func*i;
sum += func;
}
System.out.println(sum);
}
}
public class Qiuhe{
public static void main(String args[]){
long b = 8,c = 8;
for(int i = 1;i< 10;i++){
c= c*10 + 8;
b = b + c;
}
System.out.println(b);
}
}
public class Wan{
public static void main(String args[]){
int i,j,sum;
for(i = 2;i<1000;i++){
sum = 1;
for(j = 2;j<i;j++){
if(i%j == 0){
sum += j;
}
}
if(sum == i){
System.out.println(i);
}
}
}
}
public class Zhen{
public static void main(String args[]){
int sum = 0;
int i = 1;
whlie(sum <= 8888){
sum += i;
i++;
}
Syetem.out.println(i-2);
}
}
public class Star{
public static void main(String args[]){
int i,j,k;
for(i=1;i<=5;i++){
for(j=0;j<5-i;j++){
System.out.print(" ");
}
for(k=0;k<i;k++){
System.out.print("* ");
}
System.out.print("\n");
}
}
}
标签:数字 alt 不能 课程总结 成员 instr ++ img i++
原文地址:https://www.cnblogs.com/buxiu888/p/11516791.html