How do we declare double data type for C in sololearn IDE? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do we declare double data type for C in sololearn IDE?

I'm working on an apps and I'm using double data type because my apps involves real number but sololearn IDE cannot read my input if I use %f or %lf as conversion specifier? How do I solve this?

4th Apr 2019, 2:22 AM
Jackson Dian
Jackson Dian - avatar
2 Answers
+ 2
#include <stdio.h> int main() { double test; scanf("%lf", &test); printf("%f", test); } https://stackoverflow.com/questions/210590/
4th Apr 2019, 2:55 AM
Fermi
Fermi - avatar
+ 1
Thank you
4th Apr 2019, 2:54 AM
Jackson Dian
Jackson Dian - avatar