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
// 1. Ввести массив из 5 чисел, а затем вывести его в обратном порядке. | |
/* | |
#include <iostream> | |
using namespace std; | |
int main() { | |
setlocale(LC_ALL, "UKR"); | |
int const SIZE = 4; | |
int massive[SIZE] = { 5, 2, 4, 2 }; |
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
// 1. С клавиатуры вводится целое число.Вывести на экран все числа, на которые введённое число делится без остатка.Например, для 60 такими числами станут 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60. | |
/* | |
#include <iostream> | |
using namespace std; | |
int main() { | |
setlocale(LC_ALL, "UKR"); | |
int number; | |
cout << "Введите число: "; |
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
// 1. Ввести число, и определить – чётное оно, или нет. | |
/* | |
#include <iostream> | |
using namespace std; | |
int main() { | |
setlocale(LC_ALL, "UKR"); | |
int number; | |
cout << "Введите первое число: "; |
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 <iomanip> | |
using namespace std; | |
int main() { |
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
// 1) Вывести на экран консоли надпись : | |
/* | |
#include <iostream> | |
using namespace std; | |
int main(){ | |
cout << "\n"; | |
cout << " \"To be\n"; |
NewerOlder