[C] c语言 输出a的平方根值 →→→→→进入此内容的聊天室

来自 Anorexic Zebra, 2024-04-17, 写在 C, 查看 2 次.
URL http://www.code666.cn/view/b8f0f71c
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main() {
  5.     double a = 16.0;  // 假设我们要计算16的平方根
  6.     double a_sqrt = sqrt(a);
  7.     printf("The square root of %lf is %lf\n", a, a_sqrt);
  8.     return 0;
  9. }

回复 "c语言 输出a的平方根值"

这儿你可以回复上面这条便签

captcha