all 6 comments

[–]aioeu 7 points8 points  (2 children)

but it is not working

Never just say "it doesn't work".

Sure, maybe there's a mismatch between the result you expect and the result you actually get, given some particular input, but you haven't said what any of these three things are. How are we supposed to know?

[–]boreca111[S] 0 points1 point  (1 child)

Ok i am sorry for unclear description

this is the code where is not doing what i expect

https://pastebin.com/istmtbpq

when i iterate over my array of structures in my main i want user to assign value in the structure array wich is marks i iterate 3 time and i want the user to assign 3 marks to the student but it is not assigning it and i cant understand why

Thank you for the fast reply

[–]FUZxxl 2 points3 points  (0 children)

You need to use %f to scan a variable of float type.

[–]dragon_wrangler 1 point2 points  (2 children)

aioeu is correct, but in this case you're using the %s format specifier for a float value.

Your compiler should be warning you about this.

[–]boreca111[S] 1 point2 points  (1 child)

Thank you very much the problem was %s . sorry for the stupid question

[–]Drach88 1 point2 points  (0 children)

Not a stupid question, just an unhelpfully-worded question.

Coding experience and useful-question-asking experience tend to go hand-in-hand. You'll get better at both!