Jumlah Siswa : ");
scanf("%d",&jmlsiswa);
for(i=1;i<=jmlsiswa;i++){
printf("Nama - Nama Siswa : ");
scanf("%s",&namasiswa);
fflush(stdin);
}
for(i=1;i<=jmlsiswa;i++){
printf("\nInputkan Nilai Masing-Masing Siswa : ");
scanf("%d",&nilai);
}
printf("\nApakah Ada Kesalahan ? (y/n) ");
scanf("%d",&kesalahan);
if(kesalahan=='y'){
for(i=1;i<=jmlsiswa;i++){
printf("\nInputkan Nilai Masing-Masing Siswa : ");
scanf("%d",&nilai);
}
}
return 0;
}
i have problem here that the if can't run then what should i do sir?
use pastebin.com or similar
I have compiled this and it is running, please tell us what you are using to compile and run and what results you are getting
Обсуждают сегодня