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

In order to prove that the Law of Conservation Mass is obeyed, what are the coefficients needed to balance the following reaction: C3Hg + 02 1 CO2 + H2O
Use the following table to answer the question: Element Mass Number Atomic Number Aluminum 27 13 Nitrogen 14 7 Helium 4 2 Fluorine 19 9 please help Which elemen
PLEASE PLEASE PLEASE HELP!
REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Help !!!!!!!!!!!!!!!!!! ASAP plzzzz
11. If SABC is an isosceles triangle and ADBE is an equilateral triangle, find each angle measure. B mZ1 = m26= mZ2 = m27 = (483) (9x - 479 mZ3 = m28 = 68 E D с
Which expression represents the sum of n and 7 multiplied by 3? correct=brainleist :D
Need help please and thank you!!
In the kinetic theory, the particles in a gas A. move independently of each other. B. have attractive and repulsive forces. C. move slowly. D. are relatively cl
Why do we use models in our everyday lives especially for the weather?P.S- need the answer ASAP!! please helpppp ​