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
B- find and replace can replace any word in the document with another.
Answer:
I don't know the language this is but here is something that will work for all lang
int num0 = 0;
int num1 = 0;
basically just print the ints in the right dimension
Explanation:
Sorry if I am wrong
I don't know much about this someone else's answer might be better than mine
Short answer, you don't. Modern Processors are made up of billions of transistors and are built in multi million dollar factories that have equipment just for that purpose.
Answer:
Form and reports are the documents which are used to create for include the information according to the particular requirements. These are the types of documents which include some extra information in the predefined information according the particular needs and requirements.
The following are the guidelines when developing forms and reports are:
- If the data or information is in the form of table then, use the query module for defining the particular relationship of table.
- Use the proper syntax and appropriate language to define the information in the forms and reports so, it become easy to the users or customers for access the information.
- During the form development, we can also provide the validation requirement and many toolbar buttons to make easy for users.