-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cpp
More file actions
19 lines (17 loc) · 716 Bytes
/
Main.cpp
File metadata and controls
19 lines (17 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
#include "FunctionsPrototypes.h"
int main()
{
long long int Num1, Num2;
std::cout << "Type the first number: ";
std::cin >> Num1;
std::cout << "Type the second number: ";
std::cin >> Num2;
printf("%ld + %ld = %ld\n", Num1, Num2, Sum(Num1, Num2));
printf("%ld - %ld = %ld\n", Num1, Num2, Subtraction(Num1, Num2));
printf("%ld X %ld = %ld\n", Num1, Num2, Multiplication(Num1, Num2));
printf("%ld / %ld = %.3f\n", Num1, Num2, Division((double)Num1, (double)Num2));
printf("%ld ^ %ld = %ld\n", Num1, Num2, Potentiation(Num1, Num2));
printf("The square root of %ld is %.3f\n", Num1, SquareRoot((double)Num1));
printf("The square root of %ld is %.3f\n", Num2, SquareRoot((double)Num2));
}