Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 08 / task1.cpp
diff options
context:
space:
mode:
Commitb916bd80447078dd776343e11b8b2cd116392a4f (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2020-12-10 10:47:34 -0500
Committer
 GitHub <noreply@github.com>
2020-12-10 10:47:34 -0500
Files771d26c488735803bfb47d8004df66824df04af5 /Sem. 08/task1.cpp
Introduction_to_programming_FMI-b916bd80447078dd776343e11b8b2cd116392a4f.tar
Introduction_to_programming_FMI-b916bd80447078dd776343e11b8b2cd116392a4f.tar.gz
Introduction_to_programming_FMI-b916bd80447078dd776343e11b8b2cd116392a4f.zip
Parentd3c407973b09bf5eb61388c6af07dbf9419778d1 (diff)
Update task1.cpp
1 files changed, 3 insertions, 3 deletions
-rw-r--r--Sem. 08/task1.cpp6
diff --git a/Sem. 08/task1.cpp b/Sem. 08/task1.cpp
index f993c7e..b8c5943 100644
--- a/Sem. 08/task1.cpp
+++ b/Sem. 08/task1.cpp
@@ -3,7 +3,7 @@ using namespace std;
const int SIZE = 32;
-int Convert(bool arr[SIZE])
+int convert(bool arr[SIZE])
{
int result = 0;
for (int i = 31; i >= 0; i--)
@@ -13,5 +13,5 @@ int Convert(bool arr[SIZE])
int main()
{
bool arr[SIZE] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1 };
- cout << Convert(arr);
-} \ No newline at end of file
+ cout << convert(arr);
+}