array is not initialed

hello every one when i write this code i get this error ( array must be initialized with a brace-enclosed initializer) float angle[2] =; what should i do to avoid this problem? any help will be appreciated

Leave out the term "float" and declare the array elsewhere, like near the top of the program or the loop.

how to declare the array?

This is very, very basic knowledge that you need to know.

This example declares AND initializes the array angle with three elements (the "3" is not required if the array is initialized):

float angle[3]={0,0,0};