You gotta define your functions after the main() block. Finding the sine and the cosine of an an angle without using the <cmath> library is much more complicated. cos x = 1 - x^2/2! + x^3/3! - x^4/4! + .....-x^n/n!. You will need two functions for the formula above one for the exponent and one for the factorial....