There are multiple problems with this statement:
Code:
f = 2*PI * sqrt*(l*c)/1



Starting from the left of the statement:
(1) "f" is an int and thus will only record whole numbers (1, 2, 3, 4, etc.)
(2) You are not giving any input to the sqrt function, instead you are trying to multiply it by something(?)
(3) You have assigned "l" and "c" fractional values, but they are int variables so they have not recorded them. "(l*c)" will produce 0.
(4) You are dividing the results of the previous quotient by 1, but dividing *anything* by 1 will yield the original number. x/1 = x
(5) There is no semicolon at the end of the line.

I think what you mean to write is:
Code:
f = 2*PI * sqrt(l*c);



You should also change the variable definitions to:
Code:
double f, c, l;




Eats commas for breakfast.

Play Barony: Cursed Edition!