C语言程序纠错#include<stdio.h>ma
#include main(); { int s[10],j,x,f=-1 for(j=0;j<10;j++) scanf("%d",&s[j]); printf("please input a data\n"); scanf("%D",&x); for(j=0;j<10;j++) { if(x==s[j]) { printf("s[%d]=%d",j,s[j]); f=j } } if==-1 printf("sorrry,this data exist!"); getch#include
1.main() //";"不应该出现 2.int s[10],j,x,f=-1;//应该有";" 3.f=j ;//";"不能少 4.if(x==-1) //if语句的用法