SyntaxFix
Write A Post
Hire A Developer
Questions
Use the %lf format specifier to read a double:
%lf
double a; scanf("%lf",&a);
Wikipedia has a decent reference for available format specifiers.
You'll need to use the %lf format specifier to print out the results as well:
printf("%lf %lf",a,b);