lak521
lak521 lak521
  • 13-04-2021
  • Computers and Technology
contestada

NO LINKS
write a shell script to find the sum of all integers between 100 and 200 which are divisible by 9​

Respuesta :

tonb
tonb tonb
  • 13-04-2021

Answer:

#!/usr/bin/env bash

for num in {100..200}

do

   if [ $((num % 9)) -eq 0 ]

   then

       ((sum += num))

   fi

done

echo $sum

Explanation:

The output will be 1683.

Answer Link

Otras preguntas

The question is in the picture
For the functions f(x)=−7x^2−x and g(x)=9x^2−4x, find (f−g)(x) and (f−g)(1)
One of Canada's most distinctive characteristics is its . A) diverse population B) British culture C) Native American history D) French culture
Faizan buys a car for £2000.Its value depreciates by 2% each year. How much is it worth after 1 year?
Why is it important for an ecosystem to be in balance? Why? ....... please help me.
Please answer the question in the image below ASAP
Please help also with the questions on the picture, it's really urgent too...... Thank you✨​
please helllppppp........​
Transportation and communication links have . A) established an American identity B) established a Canadian identity C) divided Canada's provinces and ci
Questions 1 to 48, what are the answers? Thank you (this is a tense test)