Tenta usar double no lugar de float

main(){
double num;
printf("Escreva o valor");
scanf("%lf",&num);...