#include<stdio.h>
#include<math.h>
#define N 4
void JudgePrime()
{
int x,i;
printf("\nPlease enter a number to judge whether it is a Prime.\n");
scanf("%d",&x);
for (i=2;i<=(int)sqrt(x);i++)
{
if(x%i==0)
break;
}
if(i==(int)sqrt(x)+1)
printf("This number is a prime number.");
else
printf("This number isn't a prime number.");
}
void JudgeNar()
{
int x,a,b,c;
printf(
菜单调用各种函数
最新推荐文章于 2024-03-24 14:28:19 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)