I think this may help you a little.
the function scanf
will read and ignore any whitespace characters encountered before the next non-whitespace character (whitespace characters include spaces, newline and tab characters — see isspace).
A single whitespace in the format string validates any quantity of
whitespace characters extracted from the stream (including none).
Also it should be like #include<stdio.h>
not <#include stdio.h>
1
solved Error in accepting the value from console in c? [closed]