Ameen Akbar Posted on Feb 25, 2023 can you tell me what is the error in this code ? #sre #devops #automation #career Oldest comments (2) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Gil Fewster Gil Fewster Gil Fewster Follow Web developer, tinkerer, take-aparterer (and, sometimes, put-back-togetherer) Location Melbourne, Australia Work Front End Developer at Art Processors Joined Jul 23, 2019 • Feb 26 '23 Dropdown menu Copy link Hide Hi! I don’t code C, so I may be wrong, but my guess would be that the text input is being received as a string, and needs to be converted to a number before you can determine if it is less than 50. Collapse Expand Rain Rain Rain Follow Joined Mar 3, 2023 • Mar 6 '23 Dropdown menu Copy link Hide I can't test it now but you have to use %f for scan a float type. %d is for int type, if you want use it change the type of variable mark. Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Oldest comments (2)
Hi! I don’t code C, so I may be wrong, but my guess would be that the text input is being received as a string, and needs to be converted to a number before you can determine if it is less than 50.
I can't test it now but you have to use %f for scan a float type.
%d is for int type, if you want use it change the type of variable mark.