Answer:
def sum_digits(number):
total = 0
if 1 <= number <= 999:
while number > 0:
r = int (number % 10)
total +=r
number /= 10
else:
return -1
return total
print(sum_digits(658))
Explanation:
Write a function named sum_digits that takes one parameter, number
Check if the number is between 1 and 999. If it is, create a while loop that iterates until number is greater than 0. Get the last digit of the number using mudulo and add it to the total. Then, divide the number by 10 to move to the next digit. This process will continue until the number is equal to 0.
If the number is not in the given range, return -1, indicating invalid range.
Call the function and print the result
Answer:
You want to store, organize, and manipulate your photos. what type of software do you need?Adobe photoshop
sub heading:
what is photoshop?
Explanation:
1. you can dream it, you can make it with Adobe Photoshop.
2. Create beautiful images, graphics, paintings, and 3D artwork on your desktop or iPad
Reference link:
https://brainly.com
Hashtag:
#SPJ4
Answer:
The following are code in the Java Programming Language.
//define boolean type function
boolean isReverse(int ar[], int b[])
{
//declare integer type variable
int x;
//set the for loop
for (x=0; x < ar.length && ar[x] == b[ar.length-1-x]; x++);
return x == ar.length;
}
Explanation:
<u>The following are the description of the code</u>.
In the above code that is written in the Java Programming Language, we define the boolean data type function that is 'is Reverse()' and pass two array integer data type arguments that is 'ar', 'b' in the then, declare integer data type variable that is 'x'. Set the for loop that the boolean type value is true or false.
The option that can be used to identify and analyze which characteristic of OSPF signifies this is known to be Low overhead, fast convergence.
<h3>What is OSPF about?</h3>
The OSPF is known to be called an open Shortest Path First protocol.
It belongs to the family of IP Routing protocols as it serves as Interior Gateway Protocol (IGP) used mainly for the Internet, and the option that can be used to identify and analyze which characteristic of OSPF signifies this is known to be Low overhead, fast convergence.
See full question below
A network administrator has asked Robin, a network engineer, to use OSPF (Open Shortest Path First) along with RIP (Routing Information Protocol) on an edge router in a network so that it demands more memory and CPU power for calculations but keeps network bandwidth to a minimum with a very fast convergence time. Identify and analyze which characteristic of OSPF signifies this.
Shared data
Low overhead, fast convergence
Stability
Multi-vendor routers
Learn more about OSPF from
brainly.com/question/14604232
#SPJ1