Problem with Dev-c++ for windows 8

I have a windows 8 operating system and i also use Dev c++ as my compiler, but last time i tried to compile this algorithm it didnt output anything in the screen. what Do you think happen?
#include <iostream>

using namespace std;

int main()
{
int i,j,p;
double m;
for (i=-35;i<35;i++)
{ while (i!=0)
{
if (i<0)
{
j = j + 1;
m = (m+i)/j;
}else
{
p = p*i;
}
}
i = i + 1;
}
cout << "La media de los negativos es: " << m << endl;
cout << "El producto de los positivos es: " << p << endl;
return 0;
}
Last edited on
Topic archived. No new replies allowed.