There is another way than with% E in c, why did I do this and uri gave 10% error. Issue 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;
}