0

How to write this code?

A company has determined that its annual profit is typically 23% of total sales.write a progaram that asks the user to enter the projected amount of total sales ,and then displays the profit that will be made. Hint:"use the value 0.23 to represent 23%. My attempt:🙈 >>> profit=0.23 >>>total sales= X+0.23 >>>Total sales=1 >>>print(X) 0.77

4th Aug 2020, 5:54 AM
Siyabonga Mpanza
Siyabonga Mpanza - avatar
3 Respostas
+ 4
sales = int(input()) print(0.23*sales)
4th Aug 2020, 7:43 AM
Julia Shabanova
Julia Shabanova - avatar
+ 3
Try it yourself once and show us your attempt . We will surely try to help you 😅
4th Aug 2020, 6:19 AM
Nilesh
Nilesh - avatar