Hi,
I'm trying to write a little program that will help me calculate minority and majority carriers in semiconductors based on my input. The program should handle large numbers, typically around 10^12-10^17.
However, I'm stuck on the very start:
I'm sure something is wrong with this code, but what? For example, when I type in 15, it prints out 5.424145e-315.Code:
#include <stdio.h>
int main() {
double d=0;
scanf("%e", &d);
printf("%e\n", d);
return 0;
}