网站首页 站内搜索

搜索结果

查询Tags标签: 四位数,共有 5条记录
  • 电子学会青少年编程等级考试四级题目解析07

    一、题目:数字反转 Jaime想去城堡探险,在城堡门口遇到了小猫,Jaime必须答对小猫提出的问题才能进入城堡。 小猫出题啦:找到一个四位数,该四位数的各位数字翻转(个位变千位,十位变百位,百位变十位,千位变个位)后组成一个新的四位数,原来的四位数是这个新四位数的…

    2022/2/22 14:54:54 人评论 次浏览
  • c程序--反序显示一个四位数

    #include<stdio.h> #include<math.h> int main() { int a; scanf("%d",&a); int b=a/1000; int c=a/100%10; int d=a/10%10; int e=a%10; printf("%d%d%d%d",e,d,c,b); return 0; }

    2022/1/2 14:37:43 人评论 次浏览
  • c程序--反序显示一个四位数

    #include<stdio.h> #include<math.h> int main() { int a; scanf("%d",&a); int b=a/1000; int c=a/100%10; int d=a/10%10; int e=a%10; printf("%d%d%d%d",e,d,c,b); return 0; }

    2022/1/2 14:37:43 人评论 次浏览
  • 编写程序-不相同的三位数和四位数

    #不同的四位数 count=0 list=[1,2,3,4,5] for i in list:for j in list:for y in list:for s in list:if i!=j and j!=y and y!=s and s!=i:count=count+1print(str(i)+str(j)+str(y)+str(s), end="\t") print("一共有多少种{}方案".format(count)) #…

    2021/11/13 17:11:02 人评论 次浏览
  • 编写程序-不相同的三位数和四位数

    #不同的四位数 count=0 list=[1,2,3,4,5] for i in list:for j in list:for y in list:for s in list:if i!=j and j!=y and y!=s and s!=i:count=count+1print(str(i)+str(j)+str(y)+str(s), end="\t") print("一共有多少种{}方案".format(count)) #…

    2021/11/13 17:11:02 人评论 次浏览
扫一扫关注最新编程教程