Enter 3 real numbers. write a program that determines the product of those numbers that are divisible by 2 or 3. can somebody pleas solve this


Current behavior:

Desired behavior

Repl link:

code snippet
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
num3 = float(input("Enter third number: "))

product = <insert here>

if num1 % 2 == 0 or num1 % 3 == 0:
  product *= <insert here>

if num2 % 2 == 0 or num2 % 3 == 0:
  product *= <insert here>

if num3 % 2 == 0 or num3 % 3 == 0:
  product *= <insert here>

print("Product:", ///insert whatever u want here lolz///)

This should do?
Please fill in the <insert here> because I cannot give you the full answer.
I can help you but not give you the full ans.

Welcome to the community @sofija18 !

This looks like a School Assignment, as the policies of Replit Ask:

When asking for help with homework, make your best effort before posting your question and do not post a full assignment. Users answering homework questions are urged not to provide full solutions or write the code for the asker! Instead, try tips, pointers, and minor debugging.

@Idkwhttph be sure to confirm if the question provided is a School Assignment before giving the code too! Code and minor debugging should be the last resource.

1 Like

Technically I only gave him part of it ( the skeleton )
obviously i left some blanks to let him do stuff on his own.