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