I need help with this assignment. I'm very new to using UNIX/LINUX, and my only previous experience with programing anything is using python.
We are writing scripts using vim, and this one I'm stumped on.
"Write a shell script that finds and display the sum of even positive integers from 0 to 100. Use the while control structure. Show your script and a sample run.
Example: Sum of 0+2+4+6+8+10+12+14............+96+98+100 . "
I can find examples of listing even and odd numbers, but everything else I seem to find is adding numbers from an input from the user, but I want to add the numbers together from a range of {1..100} .
Any help would be greatly appreciated.