Skip to content
Open

Lab4 #21

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added lab0/hello/a.out
Binary file not shown.
Empty file added lab0/hello/empty
Empty file.
Binary file added lab0/hello/hello_world
Binary file not shown.
File renamed without changes.
6 changes: 6 additions & 0 deletions lab0/src/hello
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <stdio.h>

int main()
{
printf("Hello World!\n");
}
13 changes: 13 additions & 0 deletions lab1/src/average.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sum=0
count=0

for arg in "$@"
do
sum=$((sum + arg))
count=$((count + 1))
done

average=$((sum / count))

echo "Количество: $count"
echo "Среднее: $average"
2 changes: 1 addition & 1 deletion lab1/src/cake_rhymes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2141,4 +2141,4 @@ Let's spend some cake
From "I Meant You No Harm/Jimmy's Rap [Eddie Murphy]" by Various Artists:

Listen, Jimmy wanna rib, Jimmy wanna stake,
Jimmy wanna piece o' your chocolate cake!
Jimmy wanna piece o' your chocolate cake!
Empty file added lab1/src/cat
Empty file.
8 changes: 8 additions & 0 deletions lab1/src/date.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
current_path=$(pwd)
echo "Текущий путь: $current_path"

current_datetime=$(date)
echo "Текущая дата и время: $current_datetime"

echo "Переменная окружения PATH:"
echo "$PATH"
Empty file added lab1/src/file.txt
Empty file.
38 changes: 38 additions & 0 deletions lab1/src/numbers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
-2052327929 305313122 1710747617 -447613493
-313123026 -548928818 -956788863 -743001018
-1744759366 -118652918 -1829660190 -1844615270
-1509313493 -427771341 1062937898 1824819511
-843800214 1082206093 383192283 862209460
1173114215 527834824 43319982 794503944
-1906875220 -1777862017 903828368 1465672524
260585254 -1027851049 1075490081 -1646011538
1696275105 -263419061 -1556047791 1787808342
907456296 -1981479094 1459165564 406217401
-1345096005 1285216707 -165944879 -456595589
643708491 -820103845 -936157586 -316027939
659574036 171795479 -258303041 1564078749
-644199081 -1041994536 -1002657168 -491651272
-182483842 1510071333 -859581615 -956758217
68601168 849537820 -1039043339 -1869906744
716751050 -1564301193 -1252282184 823334594
1549021612 -1886693599 751631666 -1724643184
-706318923 1242321336 1461296801 1011789853
1392037245 1190641597 -1364451949 -1504471030
1132028689 971592827 -884161693 1152913838
744163316 346212835 -696212065 1760132864
-352693723 1985571736 835783877 -1273660573
-655178014 -1213184821 675088096 -381402664
-703386773 59883766 -711451025 1640948178
1417854370 32868656 644481753 -1268824927
-1380175048 1895416202 574489454 154158005
-1918304011 -204796523 -734469036 400680589
5103190 624075437 -596690411 -1285112967
2111244731 -318083076 -269495340 1429528656
474601737 1277783648 -894177877 -578765142
-1281997175 -651733918 1133053749 -186408248
1561449653 432220552 388551490 -1262827756
-2144512146 1471877951 148957167 1581252722
1813552769 -1359072653 -1716099336 -1797210878
989657636 634415298 -1734158945 -256685798
1086075533 -1280513553 406068273 -708678475
1518191518 -1989649904
4 changes: 4 additions & 0 deletions lab1/src/show_all
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
pwd
date
echo "I have $1 in my pocket"
Loading