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
| #incude <iostream> | |
| using namespace std; | |
| int main(){ | |
| int x = 10; | |
| cout << x; | |
| } |
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() { | |
| /* | |
| 1 1 1 | |
| 1 1 1 | |
| 1 1 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() { | |
| /*task 1 | |
| Знайти добуток усіх цілих чисел від а до 20 (значення а вводиться з клавіатури: 1 | |
| <= a <= 20). | |
| */ |
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 rows, cols; | |
| cout << "Enter rows: "; | |
| cin >> rows; | |
| cout << "Enter cols: "; | |
| cin >> 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> | |
| #include <math.h> | |
| using namespace std; | |
| int main() { | |
| double y; | |
| for (double i = 0.2; i <= 2.2; i += 0.2) | |
| { | |
| y = 1.8 * pow(i, 2) - sin(i) * 10 * i; | |
| cout << "y = " << y << endl; |
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 <math.h> | |
| using namespace std; | |
| int main() { | |
| double y; | |
| for (double i = -2; i <= 3; i += 0.2) | |
| { | |
| if (i>1.5) | |
| { |
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 n1 = 1; | |
| while(n1 < 10) | |
| { | |
| for (int i = 1; i <= 10; ++i) | |
| { |
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; | |
| /* | |
| Enter rows: 4 | |
| Enter cols: 4 | |
| 0 0 0 0 | |
| 1 1 1 1 | |
| 0 0 0 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> | |
| using namespace std; | |
| int main() | |
| { | |
| /*Запитати у користувача ціле число. Перетворити його із дес'ятичної системи у двоїчну*/ | |
| int number; | |
| cout << "Enter number: "; | |
| cin >> number; | |
| while (number != 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> | |
| using namespace std; | |
| int main() { | |
| /*task 1 | |
| Користувач вводить із клавіатури символ. Визначити який це символ: буква, цифра,розділовий знак або інше. | |
| */ |
OlderNewer