为什么不可以这么写?
查看原帖
为什么不可以这么写?
440777
张宇墨是伞兵楼主2021/10/6 19:14
#include<iostream>
using namespace std;
int main ()
{
    int n ;
    cin >> n ;
    for(int i=2;i<=n;i++) 
    {
        if (n%i==0)
            cout<<n/i;
            break;
    }
    return 0;
}
2021/10/6 19:14
加载中...