Reading in double values with scanf in c
Use the %lf format specifier to read a double: 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:
Use the %lf format specifier to read a double: 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: