Write a C program that accepts ten number and decide whether the number is prime.

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/18 14:00:58
Write a C program that accepts ten number and decide whether the number is prime.
x0 DK`4 &.Duϓ6?bNg{);dG|uE^

Write a C program that accepts ten number and decide whether the number is prime.
Write a C program that accepts ten number and decide whether the number is prime.

Write a C program that accepts ten number and decide whether the number is prime.
#include
int prime(int n)
{
int i;
if(n==1)
return 0;
for(i=2;i*i