Search Results

Search: Posts Made By: Nastybutler
29,063
Posted By Nastybutler
We are using this in the bash shell. Sorry I'm...
We are using this in the bash shell. Sorry I'm very new with this so I don't have the syntax down 100%.

--- Post updated at 07:08 AM ---

After everyones feedback this is what I have so far....
29,063
Posted By Nastybutler
Sum of even numbers from 0 to 100 script
1. The problem statement, all variables and given/known data:

Write a shell script that finds and display the sum of even positive integers from 0 to 100. Use the while control structure. Show...
21,168
Posted By Nastybutler
I have erased and restarted so many times out of...
I have erased and restarted so many times out of frustration what I have I know is nowhere close to what I'm looking for.

i=1
sum=0

for n in {1..100}
do
out$=(( $n % 2))
...
21,168
Posted By Nastybutler
Sum even numbers from 1 to 100
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...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 08:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy