CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Made by CrazySun03
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
double a;
double b;
char o;
cout << "Enter a number\n\n";
cin >> a;
cout << "Enter operation (+, -, *, /, ^, &(root))\n\n";
cin >> o;
cout << "Enter another number\n\n";
cin >> b;
double potencia = pow(a, b);
double raiz2 = sqrt(a);
double raiz3 = cbrt(a);
switch (o) {
case '+':
cout << a << " + " << b << " = " << a + b << "\n\nSuccessful operation";
break;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run