added laba 5
This commit is contained in:
32
lab-5/README.md
Normal file
32
lab-5/README.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# Laba 5
|
||||
|
||||
Дано число n. Среди чисел 1, 2, …, n найти все те, которые можно
|
||||
представить в виде суммы квадратов двух натуральных чисел. Для этого
|
||||
определите функцию, позволяющую распознавать полные квадраты.
|
||||
|
||||
## Requirements
|
||||
|
||||
- CMake 3.16 or newer
|
||||
- A C compiler with C11 support
|
||||
|
||||
## Configure and build
|
||||
|
||||
```sh
|
||||
cmake -S . -B build
|
||||
cmake --build build
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
```sh
|
||||
./build/c_template
|
||||
```
|
||||
|
||||
## Test
|
||||
|
||||
```sh
|
||||
ctest --test-dir build --output-on-failure
|
||||
```
|
||||
|
||||
The `greeting` library is an example of how to separate reusable code into a
|
||||
public header and implementation. Replace it with your project's own modules.
|
||||
Reference in New Issue
Block a user