My fourth scanf is not taking input?
I'm trying to make mark sheet in c language. Then my first three scanf
run properly but my fourth scanf
is not taking input my program is directly stop executing.
#include<stdio.h>
int main(){
int subject, mathematics, english, hindi, science, socialScience;
char school[50];
char name[50];
char section[5];
int standard;
int total;
printf("\nPlease Enter your school name: ");
scanf("%[^\n]%*c", school);
printf("\nEnter student name: ");
scanf("%[^\n]%*c", name);
printf("\nenter standard: ");
scanf("%d", &standard);
printf("\nenter your section:");
scanf("%[^\n]%*c", section);
return 0;
}