搜索结果
查询Tags标签: decimalNumber,共有 3条记录-
实现进制转化伪代码
实现进制转化伪代码 伪代码 Write "Enter the new base" Read newBase Write "Enter the number to be converted" Read decimalNumber Set quotient to 1 WHILE (quotient is not zero)Set quotient to decimalNumber DIV newBaseSet remainder to d…
2021/11/6 23:40:37 人评论 次浏览 -
实现进制转化伪代码
实现进制转化伪代码 伪代码 Write "Enter the new base" Read newBase Write "Enter the number to be converted" Read decimalNumber Set quotient to 1 WHILE (quotient is not zero)Set quotient to decimalNumber DIV newBaseSet remainder to d…
2021/11/6 23:40:37 人评论 次浏览 -
C语言编程 菜鸟练习100题(31-40)
【练习31】判断质数 0. 题目: 判断质数 1. 分析: 质数(prime number),指大于 1的、且除 1 和本身以外没有其他因数的自然数。 2. 程序: #include <stdio.h> #include<math.h> int main() {int i, iNum, iFlag = 0;printf("输入一个正整数: "…
2021/4/12 20:29:46 人评论 次浏览