Write a C program that accepts ten number and decide whether

Write a C program that accepts ten number and decide whether the number is prime.
气数已_尽 1年前 已收到1个回答 举报

欧阳丁当 春芽

共回答了22个问题采纳率:90.9% 举报

#include
int prime(int n)
{
int i;
if(n==1)
return 0;
for(i=2;i*i

1年前

3
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.013 s. - webmaster@yulucn.com