-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pull request | Martin Kirchev | Seminar 1, 2, 3, 4 #19
Open
Martin-Kirchev
wants to merge
19
commits into
asen-krasimirov:main
Choose a base branch
from
Martin-Kirchev:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
fe1cc4c
Test push
Martin-Kirchev 4d6a8a9
Seminar01
Martin-Kirchev ef6d692
Merge branch 'asen-krasimirov:main' into main
Martin-Kirchev 24e97c3
Seminar02
Martin-Kirchev b3ff54e
Seminar03
Martin-Kirchev 543e122
Update Seminar03.cpp
Martin-Kirchev e60cecf
Seminar03
Martin-Kirchev 59ec39a
Seminar 03
Martin-Kirchev e8ef231
Seminar04
Martin-Kirchev f213d2c
Merge branch 'asen-krasimirov:main' into main
Martin-Kirchev 680b3c8
Merge branch 'asen-krasimirov:main' into main
Martin-Kirchev 1c1a663
Merge branch 'asen-krasimirov:main' into main
Martin-Kirchev fd85e4a
Merge branch 'asen-krasimirov:main' into main
Martin-Kirchev e71392a
Merge branch 'asen-krasimirov:main' into main
Martin-Kirchev ce9780d
Merge branch 'asen-krasimirov:main' into main
Martin-Kirchev 3d80bb4
Merge branch 'asen-krasimirov:main' into main
Martin-Kirchev 29cee76
Merge branch 'asen-krasimirov:main' into main
Martin-Kirchev a46ceda
Merge branch 'asen-krasimirov:main' into main
Martin-Kirchev 199561c
Merge branch 'asen-krasimirov:main' into main
Martin-Kirchev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"inheritEnvironments": [ | ||
"msvc_x64" | ||
], | ||
"name": "x64-Release", | ||
"includePath": [ | ||
"${env.INCLUDE}", | ||
"${workspaceRoot}\\**" | ||
], | ||
"defines": [ | ||
"WIN32", | ||
"NDEBUG", | ||
"UNICODE", | ||
"_UNICODE" | ||
], | ||
"intelliSenseMode": "windows-msvc-x64" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
// MK_Project.cpp : This file contains the 'main' function. Program execution begins and ends there. | ||
|
||
#include <iostream> | ||
using namespace std; | ||
|
||
int main() | ||
{ | ||
// Zad_1 | ||
//cout << "Oh what \na happy day! \nOh yes, \nwhat a happy day!\n"; | ||
|
||
// Zad_2 | ||
//double a = 5.4; | ||
//double b = 7.9; | ||
|
||
//double P = 2 * a + 2 * b; | ||
//double S = a * b; | ||
|
||
//cout << "P: " << P | ||
// << "\nS: " << S << "\n"; | ||
|
||
// Zad_3 | ||
//double BGN; | ||
//cin >> BGN; | ||
|
||
//double USD = BGN * 0.51; | ||
//double EUR = BGN * 0.56; | ||
|
||
//cout << "USD: " << USD | ||
// << "\nEUR:" << EUR << "\n"; | ||
|
||
// Zad_4 | ||
//cout << "Please enter the length of the first side: "; | ||
|
||
//double a; | ||
//cin >> a; | ||
|
||
//cout << "\nPlease enter the length of the second side: "; | ||
|
||
//double b; | ||
//cin >> b; | ||
|
||
//double P = 2 * a + 2 * b; | ||
//double S = a * b; | ||
|
||
//cout << "\nP: " << P | ||
// << "\nS: " << S << "\n"; | ||
|
||
// Zad_5 | ||
//int num1, num2; | ||
//cin >> num1 >> num2; | ||
|
||
//bool biggerThanFirst = (num1 > num2); | ||
|
||
//cout << biggerThanFirst; | ||
|
||
// Zad_6 | ||
//int num1, num2; | ||
|
||
//cout << "Dividend: "; | ||
//cin >> num1; | ||
|
||
//cout << "Divisor: "; | ||
//cin >> num2; | ||
|
||
//cout << "The quotient of the division is : " << num1 / num2 << "\n"; | ||
//cout << "The remainder of the division is : " << num1 % num2 << "\n"; | ||
|
||
// Zad_7 | ||
//int apples, pears, bananas; | ||
|
||
//cout << "Apples: "; | ||
//cin >> apples; | ||
|
||
//cout << "Pears: "; | ||
//cin >> pears; | ||
|
||
//cout << "Bananas: "; | ||
//cin >> bananas; | ||
|
||
//cout << "Pesho, don�t forget to buy " << apples << " apples, " << pears << " pears and " << bananas << " bananas!\n"; | ||
|
||
// Zad_8 | ||
//double r; | ||
//double d = r * 2; | ||
//double PI = 3.14159265; | ||
|
||
//cout << "r = "; | ||
//cin >> r; | ||
|
||
//double C = 2 * PI * d; | ||
//cout << "C = " << C << "\n"; | ||
|
||
//double S = PI * r * r; | ||
//cout << "S = " << S << "\n"; | ||
|
||
// Zad_9 | ||
//int a, b, c; | ||
//cin >> a >> b >> c; | ||
|
||
//int D = b * b - 4 * a * c; | ||
//int x1 = (- b - sqrt(D)) / (2 * a); | ||
//int x2 = (- b + sqrt(D)) / (2 * a); | ||
|
||
//cout << "x1 = " << x1 << ", x2 = " << x2; | ||
|
||
// Zad_10 | ||
//int num1, num2; | ||
//cin >> num1 >> num2; | ||
|
||
//cout << num1 << " " << num2 << "\n"; | ||
|
||
//int variable = num1; | ||
//num1 = num2; | ||
//num2 = variable; | ||
|
||
//cout << num1 << " " << num2 << "\n"; | ||
|
||
//Yslovie 2 | ||
|
||
//int num1, num2; | ||
//cin >> num1 >> num2; | ||
|
||
//cout << num1 << " " << num2 << "\n"; | ||
|
||
//num1 = num1 + num2; | ||
//num2 = num1 - num2; | ||
//num1 = num1 - num2; | ||
|
||
//cout << num1 << " " << num2 << "\n"; | ||
|
||
//Zad_11 | ||
//int num1, num2; | ||
//cin >> num1 >> num2; | ||
|
||
//bool is_a_bigger = num1 > num2; | ||
//bool is_b_bigger = num1 < num2; | ||
|
||
//cout << "Max: " << ((is_a_bigger * num1) + (is_b_bigger * num2)) << endl << "Min: " << ((is_b_bigger * num1) + (is_a_bigger * num2)); | ||
|
||
//Zad_12 | ||
//int secondsInput; | ||
//cout << "Seconds: "; | ||
//cin >> secondsInput; | ||
|
||
// 60 sec -> 1 min | ||
// 60 min - 1 hour | ||
// 24 hours - 1 day | ||
// 60 * 60 * 24 = 86400 | ||
|
||
//int days = secondsInput / 86400; | ||
//secondsInput %= 86400; | ||
|
||
//int hours = secondsInput / 3600; | ||
//secondsInput %= 3600; | ||
|
||
//int minutes = secondsInput / 60; | ||
//secondsInput %= 60; | ||
|
||
//int seconds = secondsInput; | ||
|
||
//cout << days << " days, " << hours << " hours, " << minutes << " minutes and " << seconds << " seconds\n"; | ||
|
||
//Zad_13 | ||
//double x1, y1; | ||
//double x2, y2; | ||
|
||
//cin >> x1 >> y1; | ||
//cin >> x2 >> y2; | ||
|
||
//double distance = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)); | ||
//cout << distance; | ||
|
||
//Zad_14 | ||
//int n; | ||
//cout << "n: "; | ||
//cin >> n; | ||
|
||
//cout << (n * (n + 1)) / 2; | ||
|
||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не използвай pow