當前位置:編程學習大全網 - 電腦編程 - 用C語言編寫壹個簡單的程序。 要求:用# include<math.h>來求壹數的絕對值. 越簡單越好

用C語言編寫壹個簡單的程序。 要求:用# include<math.h>來求壹數的絕對值. 越簡單越好

#include "stdafx.h"

#include "stdio.h"//

#include "math.h"//

void main(void){

double Rx;

printf("請輸入壹個實數!\n輸入實數Rx=");

scanf("%lf",&Rx);

printf("Rx的絕對值=%f\n",fabs(Rx));

}

  • 上一篇:怎麽提取出FC模擬器VirtuaNES的rom中的音頻部分!
  • 下一篇:usb接口是什麽意思?
  • copyright 2024編程學習大全網