若将第8行的“i=1”改为“i=0”,程序运行时会发生错误。()
#include <cstdio>
#include <cstring>
using namespace std;
char st[100];
int main(){
scanf("%s",st);
int n = strlen(st);
for(int i = 1; i<= n; ++i){
if(n % i == 0){
char c = st[i - 1];
if (c >= 'a')
st[i-1]= c -'a'+'A';
}
}
printf("%s",st);
return 0;
}
正确
错误