#3969. [GESP202406 七级 C++] 第 1 题

[GESP202406 七级 C++] 第 1 题

下列 C++ 代码的输出结果是( )。

#include <iostream>
#include <cmath>
using namespace std;
int main() {
    cout << sin(3.1415926 / 2);
    return 0;
}

{{ select(1) }}

  • 0
  • 1
  • 0.5
  • 0.7071