0
#include<iostream> #include<math.h> using namespace std; int main() { double x=0.5,result; result =cos(x); cout<<"cos("<<x<<")="
2 Réponses
+ 1
You're on the right track. Just add also the result to print. Also have in mind the cos function takes arguments in radians. For degrees you need x*(180/PI).
0
Please read this tips on posting a question 👍
https://www.sololearn.com/Discuss/333866/?ref=app