14th Jan 2018, 3:45 PM
Rahul guha
Rahul guha - avatar
2 Answers
+ 2
Exacly, you have to change radians into degrees, after scanf add angle = angle * 3.1415 / 180
14th Jan 2018, 5:36 PM
rafal
+ 1
Try changing the type of "angle" to float and for the scanner change it to scanf("%f", &angle). The input of those functions is normally in radians and not in degrees..
14th Jan 2018, 4:49 PM
Jente