Skip to content

Instantly share code, notes, and snippets.

#incude <iostream>
using namespace std;
int main(){
int x = 10;
cout << x;
}
#include <iostream>
using namespace std;
int main() {
/*
1 1 1
1 1 1
1 1 1
*/
#include <iostream>
using namespace std;
int main() {
/*task 1
Знайти добуток усіх цілих чисел від а до 20 (значення а вводиться з клавіатури: 1
<= a <= 20).
*/
#include <iostream>
using namespace std;
int main() {
int rows, cols;
cout << "Enter rows: ";
cin >> rows;
cout << "Enter cols: ";
cin >> cols;
#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;
#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)
{
@m1irka
m1irka / table.cpp
Last active October 24, 2024 11:03
#include <iostream>
using namespace std;
int main() {
int n1 = 1;
while(n1 < 10)
{
for (int i = 1; i <= 10; ++i)
{
#include <iostream>
using namespace std;
/*
Enter rows: 4
Enter cols: 4
0 0 0 0
1 1 1 1
0 0 0 0
#include <iostream>
using namespace std;
int main()
{
/*Запитати у користувача ціле число. Перетворити його із дес'ятичної системи у двоїчну*/
int number;
cout << "Enter number: ";
cin >> number;
while (number != 0)
#include <iostream>
using namespace std;
int main() {
/*task 1
Користувач вводить із клавіатури символ. Визначити який це символ: буква, цифра,розділовий знак або інше.
*/