文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>如何编译数学函数

如何编译数学函数

时间:2009-07-18  来源:tancotq

以下是一个简单的例子:
#include <stdio.h>
#include <math.h>
int main()
{
 int i;
 int n;
 float x, y;
 
 scanf("%d", &n);
 for (i = 0; i < n; i++)
 {
  printf("please input the number\n");
  scanf("%f", &x);
  y = sqrt(x);
  printf("%f.....%f\n", x, y);
 }
}
 
 
编译方法:
gcc 3-2.c -o 3-2 -lm
相关阅读 更多 +
排行榜 更多 +
浴血混战官方下载

浴血混战官方下载

飞行射击 下载
检票员模拟器免广告下载

检票员模拟器免广告下载

模拟经营 下载
最终前哨最终版手机版下载

最终前哨最终版手机版下载

休闲益智 下载