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
+ 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โญ
+ 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!
+ 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
+ 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
+ 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
+ 1
bill = int(input(50))
Tip=(float(bill*0.2))
+ 1
Remove 50 โ input() is empty
And remember to output Tip
0
Ya but not coming output
0
bill = int(input())
Tip=(50*20/100)
0
Please help
0
Yes, no output because you forgot to print for your result
0
bill = int(input())
Tip=(50*20/100)
print(Tip)
Then also not coming ๐ please help
0
Thank you so much ๐๐