0
There is another way but with %E in c, why I did so and Uri gave 10 % error. Question link
My code.
#include <stdio.h>
int main(int argc, char** argv)
{
double teste;
scanf("%lf", &teste);
if(teste == -0)
{
printf("+0.0000E+00\n");
}
else
{
printf("%+.4E\n", teste);
}
return 0;
}
Had posted the wrong code, now it’s fixed
– rafael marques