hi guys i know this forum isnt for homework but im taking a software design class and wasnt able to make class on friday so im pretty lost on this assignment. i tried the book and managed to come up with this but its not working at all. the program is supposed to calculate the values of the equation with the givin values of a, b, and c taken from the arrays and use a for loop and output them as follows:

set 1: a=1, b=2, c=3

result=58

set 2: a=4, b=5, c=6

result=59

.

.

.

.

.

here's what ive come up with so far:

insert- any help would be much appreciated. again, i only came to this as a last resort.Code:#include <stdio.h> #define CONTSANT 5.9 main() { int a[7] = { 5.6, 7.3, 6, 12.2, 2, 3.2 } int b[7] = { 0.5, 3, 8, 10.3, 4.1, 4,3 } int c[7] = { 1, 3.3, 6.5, 6.6, 8.4, 15.3 } int countera; int counterb; int counterc; for ( countera = 1; i <= 6; ++i ) aoutvalues[countera] = CONSTANT*a-2/(b+c)-3*c^2; for (countera = 0; i <= 6; ++i ) printf ("a = %i, b = %i, c = %i\n", a, b, c, aoutvalues); for ( counterb = 1; i <= 6; ++i ) boutvalues[counterb] = CONSTANT*a-2/(b+c)-3*c^2; for (counterb = 0; i <= 6; ++i ) printf ("a = %i, b = %i, c = %i\n", a, b, c, boutvalues); for ( counterc = 1; i <= 6; ++i ) coutvalues[counterc] = CONSTANT*a-2/(b+c)-3*c^2; for (counterc = 0; i <= 6; ++i ) printf ("a = %i, b = %i, c = %i\n", a, b, c, coutvalues); }

thanks so much!