Answer:
The program in Python is as follows:
apples = int(input("Apples: "))
people = int(input("People: "))
apples%=people
print("Remaining: ",apples)
Explanation:
This gets the number of apples
apples = int(input("Apples: "))
This gets the number of people to share the apple
people = int(input("People: "))
This calculates the remaining apple after sharing the apple evenly
apples%=people
This prints the calculated remainder
print("Remaining: ",apples)
Explanation: It's something like siri. It's a machine or technology inside a phone or computer that gives you information to a question that you asked.
Answer:
data = [0,1,2,3,4]
for i in range(4):
print(data[i])
i+=1
Explanation:
Loops can be utilized in a listing process by looping back to a list with a variable while the loop increases that variable to give a different response from the list.
Answer:
C = M0(M1+M2+M3)+M1(M2+M3)+M2M3 is the equation which suits
Explanation:
From the given data we can state that we need to activate only one product i.e 1------>activated 0-------->means inactivated and also only one slot is activated at a time.The resultant will be no data inputs n control bits and 2 to the power n output bits.