Sololearn: Learn to Code
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)
23rd Jan 2022, 3:44 PM
NEZ
NEZ - avatar
0
Which course
23rd Jan 2022, 3:37 PM
Lakshay
Lakshay - avatar
0
Thank you
23rd Jan 2022, 3:53 PM
Siraj Masoud
- 1
...
23rd Jan 2022, 3:31 PM
Siraj Masoud
23rd Jan 2022, 3:42 PM
Siraj Masoud
- 2
Noo iam new her and i dont understand evry thing plz give me the code
23rd Jan 2022, 3:50 PM
Siraj Masoud