This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
/* | |
* TITLE: VAT PRICE CALCULATOR | |
* DESCRIPTION: A calculator that applies VAT(25%) to the price of a product. | |
* AUTHOR: OSKAR YILDIZ | |
*/ |
This file contains hidden or 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
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
/* | |
Title: CIRCLE AREA CALCULATOR | |
Description: Calculates the area of a circle upon user input of the circle's radius. | |
AUTHOR: OSKAR YILDIZ | |
*/ |
This file contains hidden or 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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
int cookies(int N, vector<int> A) { | |
int totalCookies; | |
for(int i = 0; i < A.size(); i++) { | |
totalCookies += A[i]; // Add the amount of each type of cookie to the total. | |
} |
This file contains hidden or 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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
// User inputs 10 integers which get sorted between odd and even numbers. | |
int main() { | |
cout << "Enter 10 numbers please:" << endl; |
NewerOlder