Prime number generation algorithm

前端 未结 3 602
渐次进展
渐次进展 2020-12-21 13:02

Please look at the following and see if you could advise.

cout << \"2\" << endl;
cout << \"3\" << endl;

ofstream of(\"Primes.txt\");         


        
3条回答
  •  -上瘾入骨i
    2020-12-21 13:47

      #include
    int main(void)
    {int x,i,l;
    printf("number of enter test cases\n");
    scanf("%d",&x);
    if(x>10)
    {
        return;
    }
    printf("enter the range(please do not enter 1)\n");
    int mx[20];
     for(i=0;i

提交回复
热议问题