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; | |
int main() { | |
setlocale(LC_ALL, "ukr"); | |
const int NUMMONTHS = 5; | |
double monthlyIncome; | |
double totalIncome = 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> | |
#include <Windows.h> | |
using namespace std; | |
int main() | |
{ | |
setlocale(LC_ALL, "ukr"); | |
int i = -80; | |
long long product = 1; |
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; | |
int main() | |
{ | |
setlocale(LC_ALL, "ukr"); | |
int x, y; | |
unsigned char a; | |
cout << "Enter your two numbes: " << endl; | |
cin >> x >> y; |
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; | |
int main() { | |
int number; | |
cout << "Введіть число від 1 до 100: "; | |
cin >> number; | |
(number < 1 || number > 100) ? | |
cout << "Помилка: число має бути в діапазоні від 1 до 100" << endl : |