> 其他 >
定义一个判断是否为素数函数f4,输出3~n间素数的平方根
人气:159 ℃ 时间:2020-03-19 06:20:41
解答
//#include "stdafx.h"//vc++6.0加上这一行.
#include "stdio.h"
#include "math.h"
bool prime(int n){//(n)
int i;
if(n
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版