prepare an algorithm using flowchart and write a program that ask the user to enter 2 numbers, options the number from the user and print the same product, different, and contain of the two number

Sure! Here's an algorithm along with a flowchart to solve your problem:

Algorithm:
1. Start the program.
2. Display a message asking the user to enter the first number and store it in a variable `num1`.
3. Display a message asking the user to enter the second number and store it in a variable `num2`.
4. Display a message asking the user to select an option (1, 2, 3) for the desired operation.
5. If the option selected is 1:
a. Calculate the product of `num1` and `num2` and store it in a variable `product`.
b. Display the calculated product of the two numbers.
6. If the option selected is 2:
a. Check if `num1` is equal to `num2`.
b. If they are equal, display a message indicating that the two numbers are the same.
c. If they are not equal, display a message indicating that the two numbers are different.
7. If the option selected is 3:
a. Concatenate `num1` and `num2` as strings and store them in a variable `concatenated`.
b. Display the resulting concatenated string of the two numbers.
8. End the program.

Flowchart:
```
_________________
| |
START| |
| Enter the |
| first number |
| (num1): |
|_________________|
|
|
V
_________________
| |
| Enter the |
| second number |
| (num2): |
|_________________|
|
|
V
_________________
| |
| Enter an |
| option (1-3) |
|_________________|
|
|
_________________|_____________ _________________
| | | |
option| 1 | [no] | option |
= 1 | Calculate product of num1 | -------->| = 2 |
| and num2, display product | | Compare num1 |
|_____________________________| [no]| and num2, |
| | display same or |
| [yes] | different |
V |_________________|
_________________ |
| | |
| Display the | __________|___________
| calculated | | |
| product | | num1 != num2 |
|_________________| [yes] | |
| | |
| | Display that the |
V | two numbers are |
_________________ | different |
| | [no]| |
| end program | |____________________|
|_________________|

```

Here's a Python code implementation of the algorithm:

```python
# User Input
num1 = int(input("Enter the first number (num1): "))
num2 = int(input("Enter the second number (num2): "))

# User Option
option = int(input("Enter an option (1-3): "))

# Perform the desired operation based on the selected option
if option == 1:
product = num1 * num2
print("Product of num1 and num2: ", product)
elif option == 2:
if num1 == num2:
print("The two numbers are the same.")
else:
print("The two numbers are different.")
elif option == 3:
concatenated = str(num1) + str(num2)
print("Concatenated string of num1 and num2: ", concatenated)
else:
print("Invalid option selected.")

```
This code prompts the user to enter two numbers, select an option, and performs the desired operation based on the chosen option. The output will be based on the selected option: the product of the two numbers, a message indicating if they are the same or different, or the concatenated string of the numbers.

Here is the algorithm in the form of a flowchart:

1. Start
2. Prompt the user to enter the first number (num1)
3. Prompt the user to enter the second number (num2)
4. Prompt the user to select an option:
- "1" for finding the product of num1 and num2
- "2" for finding the difference between num1 and num2
- "3" for displaying the numbers themselves
5. If the option is 1, calculate the product of num1 and num2
6. If the option is 2, calculate the difference between num1 and num2
7. If the option is 3, display the values of num1 and num2
8. Display the result or values based on the selected option
9. End

And here is the Python code for the program:

```python
# Step 1: Prompt the user to enter two numbers
num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))

# Step 2: Prompt the user to select an option
print("Select an option:")
print("1. Find the product of the two numbers")
print("2. Find the difference between the two numbers")
print("3. Display the numbers themselves")
option = int(input("Enter an option (1/2/3): "))

# Step 3: Perform the calculations or display the numbers
if option == 1:
product = num1 * num2
print("The product of", num1, "and", num2, "is", product)
elif option == 2:
difference = abs(num1 - num2)
print("The difference between", num1, "and", num2, "is", difference)
elif option == 3:
print("The first number is", num1)
print("The second number is", num2)
else:
print("Invalid option selected!")

# Step 4: End
```

This program prompts the user to enter two numbers, then select an option to find the product of the numbers, find the difference between the numbers, or display the numbers themselves. The program then performs the corresponding calculations or displays the numbers based on the selected option.