- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSquareFunction.cpp
More file actions
Latest commit
22 lines (19 loc) · 455 Bytes
/
Copy pathSquareFunction.cpp
File metadata and controls
22 lines (19 loc) · 455 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//CSC114-651
//Student: Christopher Yonek (700642859)
//Assignment: This program uses a bultin to raise a number to a power
//Date: September 2018
#include"pch.h"
#include<iostream>
#include<conio.h>
#include<cmath>
usingnamespacestd;
intmain()
{
int num;
char letterx = 'x';
cout << "Enter a number and I'll give you a square! ";
cin >> num;
double displayX = pow(letterx, num);
cout << displayX;
return0;
}