One of the college classes I am taking is a problem solving/programming class. It is fun. I am learning some basic programming techniques.
Challenge, for all you math/programming oriented people out there. What does this simple script do?
numerator = 1;
denominator = 1;
term = numerator/denominator;
sumt = 1;
while abs(term) >= 0.0000001
The prize is a year's supply of dog hair.
Also, if you know what it does, can you show me a more efficient way to do it?
**Note: Due to circumstances beyond my control, there should be some indenting in the code (specifically for the while and if/else loops). I apologize for any confusion.