Answer:
The answer to this question is "15 line".
Explanation:
A function is a block of ordered, portable code used to perform a single, connected operation. The syntax of function declaration can be given as:
Syntax :
returntype functionName(parameter1, parameter2); //function prototype
or declaration
returntype functionName(parameter1, parameter2) //function definition or header of the function
{
//function body.
//function implementation
//return value;
}
In the given question the header of the showDub function is on line 15.
That's why the answer to this question is "15 line".
Answer:
// program in Python to check perfect number
#function to find number is perfect or not
def is_Perfect_Number(n):
#total variable
tot = 1
i = 2
#sum of all divisor of number
while i*i<=n:
if n%i==0:
tot = tot + i + n/i
if tot == n and n != 1:
return 1
i = i+1
return 0
#read until user enter a perfect number
while True:
#read integer
num = int(input("Input an integer: "))
#call the function
if(is_Perfect_Number(num)):
print(num,"is perfect number")
#if perfect number break
break
else:
print(num,"is not a perfect number")
#ask again
print("try again.")
Explanation:
Read number from user and then call the function is_Perfect_Number() with parameter "num".This will find the sum of all divisor of number.If sum is equal to number then it will return 1 else return 0.If the number is not perfect then it will again ask to enter a number until user enter a perfect number.
Output:
Input an integer: 24
24 is not a perfect number
try again.
Input an integer: 28
28 is perfect number
The answer to the given picture is - Microsoft word's spell checker only recognizes very common words. Microsoft word has it's own dictionary which will be compared to the texts on your document. If they see an unfamiliar word they will underline it with red. Anyways you can add your own words and names to the custom dictionary.
Yes true
hey is this one of your questions on a science packet if so it is called explore ring Earth's surface because I have the same packet with the same question on it
Answer: A.The introduced species compete for resources more effectively than native species.
Explanation:
An introduced species is also called the exotic species and this is an organism which is not a native organism or specie and therefore isn't native to the place but rather it's being transported to the place through the activities of human being.
When the introduced species are introduced to a particular area, they compete with the natives for the available resources and often do this more effectively than the other native species.
Therefore, the correct option is A.