题目内容
下面程序的功能是将从键盘输入的偶数写成两个素数之和。请选择填空。#include #include main(){int a,b,c,d;scanf("%d",&a);for(b=3,b<=a/2;b+=2){for(c=2;c<=sqrt(b);c++) if(b%c==0) break;if(c>sqrt(b)) d= ;else continue;for(c=2;c<=sqrt(d);c++) if(d%c==0) break;if(c>sqrt(d)) printf("%d=%d+%d\n",a,b,d);}}
查看答案
搜索结果不匹配?点我反馈
更多问题