SyntaxFix
Write A Post
Hire A Developer
Questions
Using %lf will help you in solving this problem.
%lf
Use :
scanf("%lf",&doub)