3_28.cpp
来自「C++案例教程源代码」· C++ 代码 · 共 13 行
CPP
13 行
#include<iostream>
#include<cmath>
using namespace std;
void main(void)
{ double hypotenus;
double x = 3.0,y = 4.0;
hypotenus = hypot(x, y);
cout<<"斜边长="<<hypotenus;
int n=3;
cout<<x<<"的"<<y<<"方值="<<pow(x, y)<<endl;
cout <<x<<"开平方根="<<sqrt(x);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?