13 ответов
+ 5
use '//' because 11/10 returns 1.1 but you need 1
+ 4
Please show your code first
+ 4
Dhairyashil Deshpande Missing simple things is part of the learning process ☝️
Do you still want an explanation of my code? Because it would take me two hours to write it
+ 3
I agree with Mert Yazıcı, but this code is too beautiful not to share:
https://code.sololearn.com/cK04aqvbAAcE/?ref=app
+ 3
+ 2
I have no experience with Python but I think this should help
for i in range (10, 99):
firstDigit = i // 10;
secondDigit = i% 10;
if ((firstDigit + secondDigit)**2 - 18 == i):
print(i)
I hope i didn't mess anything up xd
+ 2
Dhairyashil Deshpande if question is related to Python, why you have tagged c and c++ in question? please untag these two so that people don't get confused
+ 2
no thanks, I figured it out
+ 1
Anna could you explain your code,,, and if possible can you give a simple solution?
many thanks
+ 1
thank you Mert Yazici thanks a lot
+ 1
it worked,,, I feel stupid for missing simple things damn
0
ya I tried the same, but it shows no output
0
for i in range (10,99):
x=i%10
y=i/10
if i == ((x+y)**2-18):
print(i)
I tried this