> 其他 >
vb中验证哥德巴赫猜想.要求将6~100之间的全部偶数表示为2个素数之和,结果显示在列表框,并显示有多少对
要求输出6=3+3
8=3+5
10=3+7
10=5+5
注意比如10,能拆成几对都要显示出来.
人气:237 ℃ 时间:2020-03-26 17:05:30
解答
#include
#include
using namespace std;
bool isprime(int);
void gotbaha(int);
int main( )
{ \x09int n;
\x09coutn;
\x09while (n这个是啥?我是vb这是C++语言啊~~~~VB我还没学你只需要把语法表达改为VB的就可以了
推荐
猜你喜欢
© 2025 79432.Com All Rights Reserved.
电脑版|手机版