Skip to content

Instantly share code, notes, and snippets.

View Hateibl's full-sized avatar
😃

Hateibl

😃
View GitHub Profile
@Hateibl
Hateibl / й
Created October 5, 2025 16:45
Дз C++ Коновалов Арсений РПО-24/2
//#1
//#include <iostream>
//using namespace std;
//
//int main() {
// int number;
// int a = 0;
// int i = 1;
// cin >> number;
// while (i <= number) {
№1
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int number;
cin >> number;
if (number > 0) {
number += 1;
Извините что опоздал была проблема с гистом. Задачи не полностью сохранялись поэтому переотправляю
№1
#include <iostream>
#include <cmath>
using namespace std;
int main() {
double a, b;
cin >> a >> b;
cout << "Площадь: " << a * b << endl;
@Hateibl
Hateibl / gist:e02b625db2d42e8099368dc301e800aa
Created September 21, 2025 20:39
РПО 24/2 коновалов арсений дз
№1
#include <iostream>
#include <cmath>
using namespace std;
int main() {
double a, b;
cin >> a >> b;
cout << "Площадь: " << a * b << endl;
cout << "Периметр: " << 2 * (a + b);
#1
numbers = [1, 3, 5, 7, 2, 4, 6, 8]
max_sum = 10
groups = []
current_group = []
current_sum = 0
for number in numbers:
if current_sum + number > max_sum:
# задание1
# i=0
# num=[]
# while i<5:
# i+=1
# a=[input('введите число')]
# num=num+a
# print(num)
# задание5
# numbers1=[1,2,3,4,5]
#1
SIZE = 10
for row in range(SIZE):
for col in range(SIZE):
print("*", end=" ")
print()
"""
#2
"""
Задание № 6
number = int(input("Введите число")
min_digit = 9
max_digit = 0
count = 0
print("Введите десятизначное число:")
while count < 10:
digit = input("Введите цифру: ")
number += digit
#1
n = int(input("Введите число n: "))
a = 0
for i in range(n, 0, -1):
a += i
print(i, end=" ")
print(f"\nСумма чисел от 1 до {n} равна {a}.")
№1
start = int(input("Введите начало диапазона: "))
end = int(input("Введите конец диапазона: "))
current = start
while current <= end:
if current % 7 == 0:
print(current)
current += 1
№2