Answer:
Explanation:
Let's do this in python
(a) Between 5 and 60 and divisible by 5
for i in range(5, 60/5):
print(5*i)
(b) Less than 200 and divisible and 2 and 7
for i in range(1, int(200/14) + 1):
print(14*i)
(c)Sum of multiple of 8 that are between 100 and 500
sum_result = 0
for i in range(100, 500):
if i % 8 == 0:
sum_result += i
print(sum_result)
(d)sum of all odd numbers between 20 and 10
sum_odd = 0
for i in range(10, 20):
if i % 2 == 1:
sum_odd += i
print(sum_odd)
Answer:
Case
Explanation:
In Computer programming, a variable can be defined as a placeholder or container for holding a piece of information that can be modified or edited.
Basically, variable stores information which is passed from the location of the method call directly to the method that is called by the program.
For example, they can serve as a model for a function; when used as an input, such as for passing a value to a function and when used as an output, such as for retrieving a value from the same function. Therefore, when you create variables in a function, you can can set the values for their parameters.
A Select Case statement can be defined as a conditional statement that avails software developers or programmers the ability to test a variable by comparing it with a list of values.
In a Select Case statement, each variable is referred to as a Case.
Generally, when a Select Case statement executes, the value of the test expression is compared with the values that follow each of the Case keywords.
Yes brudda! to the queen!!
3% of pedestrian fatalities were caused by impaired drivers