Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
]
}
],
"version": 4
}
28 changes: 28 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc.exe build active file",
"command": "C:/msys64/ucrt64/bin/gcc.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "C:/msys64/ucrt64/bin"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
19 changes: 19 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
#include <cmath>

int main()
<<<<<<< HEAD
{
cout << "Yo its me, lil d" << endl;
cout << "Hi, please enter two whole numbers: ";

int x,y;

cin >> x >> y;
cout << x << "+" << y << "=" << x + y << endl;
cout << x << "-" << y << "=" << x - y << endl;
cout << x << "*" << y << "=" << x * y << endl;
cout << x << "/" << y << "=" << x / y << "with a remainder of " << x%y;
cout << "Square Root of " << x << " is " << sqrt(x) << endl;
cout << "Square Root of " << y << " is " << sqrt(y) << endl;
cout << x << "^" << y << "=" << pow(x, y) << endl;

=======
{
std::cout << "THE FIRST EXAMPLE MATH DISPLAY!\n";
std::cout << "Hi, please enter two whole numbers: ";
Expand All @@ -17,5 +34,7 @@ int main()
std::cout << "Square Root: " << sqrt(x) << std::endl;
std::cout << "Square: " << pow(x, y) << std::endl;

>>>>>>> 4beaca6a6ec6f87415e1befc3e887fbe0112bb3a
return 0;

}