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

necesito una oracion con la palabra as
"TELL ME, O SWAN, YOUR ANCIENT TALE" The narrator speaks of a land where there is no _____. bird of prey doubt or sorrow human contact flower of death
1. Write one short-term goal for enhancing your sense of self, and list all the steps necessary to achieve the goal. The steps to your goal must include how you
How should records related to a workplace injury be maintained?
What is 14/35 in simplest form?
7. The following question refers to “The Secret Latina.” An important purpose of this essay is to persuade you that children with parents from different cultur
The chiefs of the Sahel grew rich from _____. selling water trading gold conquering groups taxing traders
La escuela de Jorge ofrece clases de __________ marciales como el karate y el judo. When entering your answers for fill in the blank and essay questions, pleas
reread lines 1-2 of beowulf "a powerful monster .. living .. growled in pain". how does the poets use of alliteration influence the mood or tone in these lines
A play that begins with a narrator explaining what led up to the scenes you will read or watch would be said to have a(n) __________. denouement exposition ante