New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Siraj Masoud, I have edited this answer, have a look, we don't (should not) give codes (code solutions) directly.
After viewing your profile I think that you are talking about this:
Tip Calculator
Right?
Ok, so we don't give code solutions directly 😳🙄, you need to attach your code (your attempt towards this problem), but we can help you in understanding the problem 🙂.
1. Take first input as integer
2. Use print function to print the 20% of it.
simple!
//
finding hard to do that?!☝️ok, lets see how to calculate 20% of any integer 😁:
20% of 50 means:
(20/100)*50
so, we get 0.2*50=10.0🙂
so you can take a variable for that like:
tip=(20/100)*integer (any num)
and use print function to print tip, like this:
print(tip)
0
Which course
0
Thank you
- 1
...
- 1
- 2
Noo iam new her and i dont understand evry thing plz give me the code