need to change this to a while loop help plz

for (x=1; x < 100; x++)
sum=sum +x;