i am new student i had a home work but i cant get this done
how can i input in the same line a char and two integers
the output should be like this :
please enter candidate family condition, defect percent,
children number, working condition: s 20 0 1
in my program i wrote it like this:
printf("please enter candidate family condition, defect percent,
children number, working condition: ");
scanf("%c,%d,%d,%d",&status,&defect,&chnum,&w_cond);
i dont get it right when i input this : s 20 0 1
i tried without space even,but the teacher told us we have to input the data in one line and spaces between them
i would be happy if anyoe could help me
thx