Can anyone correct this code? “for” loop is not working properly

前端 未结 0 1023
名媛妹妹
名媛妹妹 2020-12-19 07:46
int num, a = 0;
cout << "Input a number to check prime or not : "; 
cin >> num;
if (num != 0 && num >= 2)
{
    for (int x = 2; x &l         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题