Skip to content

Instantly share code, notes, and snippets.

View Kaytomii's full-sized avatar

Kaytomii

  • Joined Aug 31, 2025
View GitHub Profile
@Kaytomii
Kaytomii / homework11
Last active September 25, 2025 16:56
HW11
//TASK 1
#include <iostream>
char* my_strchr(const char* str, int c)
{
while (*str != '\0')
{
if (*str == c)
{
@Kaytomii
Kaytomii / homework10
Last active September 25, 2025 16:03
HW10
//TASK 1
#include <iostream>
void remove_symbol(char* str, int index)
{
int len = std::strlen(str);
if (index < 0 || index >= len)
{
@Kaytomii
Kaytomii / homework9
Created September 21, 2025 18:40
HW9
//TASK 1
#include <iostream>
void fill_array(int* arr, int size)
{
for (int i = 0; i < size; ++i)
{
std::cout << "Введите [" << i << "] " << "элемент массива: ";
std::cin >> arr[i];
@Kaytomii
Kaytomii / homework8
Last active September 16, 2025 21:44
HW8
//TASK 1
#include <iostream>
void copy_array(int* arr, int* copied_arr, int size)
{
if (size > 0)
{
for (int i = 0; i < size; ++i)
{
@Kaytomii
Kaytomii / homework7
Last active September 13, 2025 14:14
HW7
//TASK 1
#include <iostream>
int main()
{
setlocale(LC_ALL, "");
const int ROWS = 3;
const int COLS = 4;
@Kaytomii
Kaytomii / homework6
Last active September 9, 2025 14:37
HW6
//TASK 1
#include <iostream>
void draw_rectangle(const int height, const int width)
{
std::cout << "+";
for (int i = 0; i < width; ++i)
{
std::cout << "-";
@Kaytomii
Kaytomii / homework5
Last active September 7, 2025 15:17
HW5
//TASK 1
#include <iostream>
#include <cmath>
double numberInPow(int a, int b)
{
return pow(a, b);
}
@Kaytomii
Kaytomii / lesson5
Last active September 5, 2025 17:22
Lesson
//TASK 1
#include <iostream>
void cube(int a)
{
int sum = a * a * a;
std::cout << sum;
}
@Kaytomii
Kaytomii / homework4
Last active September 6, 2025 01:21
HW4
//TASK 1
#include <iostream>
int main()
{
setlocale(LC_ALL, "");
const int SIZE = 10;
int arr[SIZE];
@Kaytomii
Kaytomii / homework3
Last active September 4, 2025 19:14
HW3
//TASK 1
#include <iostream>
int main()
{
setlocale(LC_ALL, "");
int a = 100;
int sum = 0;