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?
2 odpowiedzi
+ 2
#include <stdio.h>
int main() {
double test;
scanf("%lf", &test);
printf("%f", test);
}
https://stackoverflow.com/questions/210590/
+ 1
Thank you