Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
Why did you remove bill form the tip calculatation? We have to calculate the tip given bill and not for 50. Replace 50 with bill
6th Dec 2021, 12:33 PM
Lisa
Lisa - avatar
+ 2
Isn't it the same question as here? https://www.sololearn.com/Discuss/2936244/?ref=app If you want to add something, just post in the same thread โ€“ no need to create a new one;) And again: โญtag relevant programming language, link your CODEโญ
5th Dec 2021, 6:09 PM
Lisa
Lisa - avatar
+ 1
You didn't pose any question. If you need help, mention the programming language and show your code, so that we can help you with the task!
5th Dec 2021, 6:13 PM
Lisa
Lisa - avatar
+ 1
Explanation: 20% of 50 is 10. To calculate 20% of a given amount, you can multiply the number by 20 and divide it by 100: 50*20/100 = 10.0 Python
5th Dec 2021, 6:14 PM
Jagadeesh Srikantam
+ 1
You can approach the task like this: * get input * convert input to a numeric data type (bill) * multiply bill with 0.2 (20%) * output result
5th Dec 2021, 6:16 PM
Lisa
Lisa - avatar
+ 1
Jagadeesh Srikantam Your question appears to a duplicate please use the searchbar before asking. Please use the forum guidelines provided below and use the 8 rules for getting help from the community. https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community Your question will be marked for deletion. Reason duplicate threads are removed to: Focus substantially similar discussion in one thread and to prevent forums being cluttered with multiple threads on the same topic. https://www.sololearn.com/Discuss/1316935/?ref=app https://www.sololearn.com/discuss/2755803/?ref=app https://www.sololearn.com/discuss/2709597/?ref=app https://www.sololearn.com/discuss/2693488/?ref=app https://www.sololearn.com/discuss/2742307/?ref=app https://www.sololearn.com/discuss/2833488/?ref=app https://www.sololearn.com/discuss/2776833/?ref=app
5th Dec 2021, 6:21 PM
BroFar
BroFar - avatar
+ 1
bill = int(input(50)) Tip=(float(bill*0.2))
5th Dec 2021, 6:27 PM
Jagadeesh Srikantam
+ 1
Remove 50 โ€“ input() is empty And remember to output Tip
5th Dec 2021, 6:34 PM
Lisa
Lisa - avatar
0
Ya but not coming output
6th Dec 2021, 11:34 AM
Jagadeesh Srikantam
0
bill = int(input()) Tip=(50*20/100)
6th Dec 2021, 11:38 AM
Jagadeesh Srikantam
0
Please help
6th Dec 2021, 11:38 AM
Jagadeesh Srikantam
0
Yes, no output because you forgot to print for your result
6th Dec 2021, 11:42 AM
Lisa
Lisa - avatar
0
bill = int(input()) Tip=(50*20/100) print(Tip) Then also not coming ๐Ÿ˜’ please help
6th Dec 2021, 12:26 PM
Jagadeesh Srikantam
0
Thank you so much ๐Ÿ™‚๐Ÿ‘
6th Dec 2021, 12:40 PM
Jagadeesh Srikantam