Sales=float(input("enter the amount of annual sales: ")) #Take the value from the user.
print("The annual profit is : ",Sales*0.23)# print the value of profit.
If the user input as 12, then the output is "2.7600000000000002".
If the user input as 34, then the output is "7.82".
The above code is in python language, in which the first line is used to instruct the user for the input, then take the input from the user and store it into the Sales variable after converting it into float data type.
Then the second statement prints the profit value after multiplied with 0.23 with the help of print function.
The above code uses 0.23 because 23/100 becomes 0.23.