Do While a %26lt;= IntN
a = a + 1
sngSumXY = sngSumXY + sngInputX(a) * sngInputY(a)
Loop
sngSumXY = IntN * sngSumXY
Do While b %26lt;= IntN
b = b + 1
sngSumX = sngSumX + sngInputX(b)
Loop
Do While c %26lt;= IntN
c = c + 1
sngSumY = sngSumY + sngInputY(c)
Loop
sngSum_Total = sngSumY * sngSumX
Do While d %26lt;= IntN
d = d + 1
sngSumX_first = sngSumX_first + (sngInputX(d)) ^ (2)
Loop
sngSumX_first = sngSumX_first * IntN
Do While e %26lt;= IntN
e = e + 1
sngsumx_second = sngsumx_second + (sngInputX(e))
Loop
sngsumx_second = (sngsumx_second) ^ (2)
Do While f %26lt;= IntN
f = f + 1
sngSumy_first = sngSumy_first + (sngInputY(f)) ^ (2)
Loop
sngSumy_first = sngSumy_first * IntN
Do While g %26lt;= IntN
g = g + 1
sngsumy_second = sngsumy_second + (sngInputY(g))
Loop
sngsumy_second = (sngsumy_second) ^ (2)
r1 = (sngSumXY) - (sngSum_Total)
r2 = ((sngSumX_first) - (sngsumx_second)) ^ (0.5)
r3 = ((sngSumy_first) - (sngsumy_second)) ^ (0.5)
Whats wrong with this code? it says RUNTIME TIME ERROR 6 OVERFLOW. all variables are SINGLE?
Without trying to analyse everything, the first question I'd ask is... have you initialised all the loop variables (a, b, c, etc)? Have you properly set others (eg. IntN)? Have you initialised all the sums to 0?
That's where I'd look first...
Reply:Check header files
and if you will take { } normaly so you will try (getch) command in last.
carnation
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment