double cos(double x);
#include<stdio.h> #include<math.h> int main() { double pi = 3.1415926; //為變數賦初值 double m = pi / 4, n; //為變數賦初值 n = cos(m); //求m的餘弦函數值 printf("%lfn", n); return 0; }