#include<iostream>
#include<cmath>
using namespace std;
void Addition(double a,double b)
{
cout<<a+b<<endl;
}
void Subtraction(double a,double b)
{
if(a>b)
cout<<a-b<<endl;
else
cout<<"-"<<b-a<<endl;
}
void Multiplication(double a,double b)
{
cout<<a
C++编写一个加减乘除开方乘方计算器
最新推荐文章于 2024-07-01 20:37:51 发布
该博客介绍了如何使用C++编程实现一个基础的计算器功能,包括基本的加减乘除运算以及平方根和乘方运算。通过示例展示了乘方运算的结果。
摘要由CSDN通过智能技术生成