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
//TASK 1 | |
#include <iostream> | |
#include <cmath> | |
double numberInPow(int a, int b) | |
{ | |
return pow(a, b); | |
} |
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
//TASK 1 | |
#include <iostream> | |
void cube(int a) | |
{ | |
int sum = a * a * a; | |
std::cout << sum; | |
} |
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
//TASK 1 | |
#include <iostream> | |
int main() | |
{ | |
setlocale(LC_ALL, ""); | |
const int SIZE = 10; | |
int arr[SIZE]; |
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
//TASK 1 | |
#include <iostream> | |
int main() | |
{ | |
setlocale(LC_ALL, ""); | |
int a = 100; | |
int sum = 0; |
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> | |
int main() | |
{ | |
setlocale(LC_ALL, ""); | |
const int ROWS = 2; | |
const int COLS = 4; | |
int arr2d[ROWS][COLS]; |
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> | |
int main() | |
{ | |
setlocale(LC_ALL, ""); | |
const double percentage1 = 0.03; | |
const double percentage2 = 0.05; | |
const double percentage3 = 0.08; |