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
#include <iostream> | |
using namespace std; | |
int main() { | |
setlocale(0, ""); | |
// Task 1 | |
// double length; | |
// int minutes; | |
// cout << "Введите расстояние (в километрах): "; | |
// cin >> length; |
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
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
int main() { | |
setlocale(0, "ru"); | |
double a; | |
double b; | |
// cout << "Enter first number: "; | |
// cin >> a; |
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
#include <iostream> | |
using namespace std; | |
int main() { | |
setlocale(0, "ru"); | |
// double mass; | |
// cout << "Введите массу в тоннах: "; | |
// cin >> mass; | |
// int full_num = mass * 1000000; | |
// cout << "Тонны: " << (int)mass << '\n'; |
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
#include <iostream> | |
using namespace std; | |
int main() { | |
setlocale(0, "ru"); | |
// Task 1 | |
// double summ; | |
// double percents; | |
// cout << "Введите сумму: "; | |
// cin >> summ; |
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
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main() { | |
setlocale(0, "ru"); | |
// double n1; | |
// double n2; | |
// double n3; | |
// if (n1 > n2 && n1 > n3) { |
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
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main() { | |
setlocale(0, "ru"); | |
int choice = 0, result = 1; | |
cout << "Добро пожаловать в игру \"О, Счастливчик\" \nТема игры: 2 Мировая \n"; | |
cout << "Начнём с простого: какая дата начала и окончания 2 Мировой Войны\n"; | |
cout << "1) 1941 - 1945 \n"; |
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
#include <iostream> | |
using namespace std; | |
int main() { | |
setlocale(0, "ru"); | |
// Task 1 | |
// int i = 1; | |
// while (i <= 100) { | |
// if (i % 2 == 0) { | |
// cout << i << '\n'; |
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
#include <iostream> | |
using namespace std; | |
int main() { | |
setlocale(0, "ru"); | |
// Task 1 | |
// int num; | |
// int i; | |
// cout << "Enter number: "; | |
// cin >> num; |
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
#include <iostream> | |
#include <windows.h> | |
using namespace std; | |
int main() { | |
HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE); | |
int height = 15; | |
int width = 30; | |
int value = 1; |
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
#include <iostream> | |
#include <windows.h> | |
#include <ctime> | |
using namespace std; | |
int main() { | |
HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE); | |
setlocale(0, ""); | |
srand(time(0)); | |
int country = 0; |
OlderNewer