+ 5
Help me please !!
Where is the error ? https://code.sololearn.com/cem7bTJplvpR/?ref=app
3 ответов
+ 13
Yes as Ina said use '==' and not '=' to test for equality. Otherwise you are assigning the value to the variable. Also better to use 'else if' and 'else' after the initial 'if'. But it looks like you're using a very crude way to calculate the arcsine (inverse sine) of a value by testing for just a set of discrete values. Maybe look at including math.h or related library/header and use its related functions (e.g. asin).
https://www.tutorialspoint.com/c_standard_library/c_function_asin.htm
+ 4
You have to use check equality by == operator not assigned a value in if statement
+ 2
if ( a == not if ( a =