I am interested if there is any way to set default way to input numbers in C, for example xxxx.xx, like valid number for this example would be 1.00 or 1234.00, something like that.
I have searched for this in many sites, but didn’t find anything useful.
I know its rather simple task, but I am new for C so it gives me trouble 😀
If I understand your question correctly
scanf()may be what you’re looking for.scanf() C reference
With that function you can define the format of the input from
stdin.