Commit 94d60d9d authored by Abhijeet Pratap's avatar Abhijeet Pratap

upload

parents
#!/bin/bash
read n
sum=$(( $n * ( $n + 1 )*(2*($n) + 1)/6))
echo $sum
#!/bin/bash
n=$(find $* -type d | wc -w)
echo $((n-1))
#!/bin/bash
file_name=$(<$*)
IFS=' '
read -a num_array_sorted <<< "$file_name"
for values in "${num_array_sorted[@]}";
do
if [[ "$values" == *"5"* ]]; then
echo $values >> q3_out.txt
fi
done | sort
Each member have equally contributed to the project.
Refrences:
a)https://github.github.com/training-kit/downloads/github-git-cheat-sheet.pdf
b)https://devhints.io/bash
c)Took help from google when we got confuse about.
GIT aDDRRESS :
https://git.cse.iitb.ac.in/aaybachelor/inLab2/new/master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment