Commit c1707ed4 authored by Ayush's avatar Ayush

Upload new file

parent acef6084
#!/bin/bash
read n
sum=$(( $n * ( $n + 1 )*(2*($n) + 1)/6))
echo $sum
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