宣告pi 為浮點數*/ printf("Input a radius =");. // 輸出提示輸入的訊息 scanf("%f ",&radius);. // 接收鍵盤輸入,將值存入radius pi = 2 * acos(0.0);. // 計算pi.
確定! 回上一頁