#include <stdio.h>int i;float a[10];for(i=0;i<10;i++){a[i]=11.5+5i;}int main(){int j;for(j=0;j<10;j++){printf("%f",a[j]);}}algorithm.c:5:5: error: expected identifier or ‘(’ before ‘for’for(i=0;i<10;i++)^algorithm.c:5:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ tokenfor(i=0;i<10;i++)^algorithm.c:5:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ tokenfor(i=0;i<10;i++)
添加回答
举报
0/150
提交
取消