We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Introduction
- Loops
- Discussions
Loops
Loops
+ 0 comments intno=10
def findsqure(intinputno): print(intinputno) for i in range(intinputno,0,-1): print(i*i)
findsqure(intno)
+ 1 comment This worked for me
if __name__ == '__main__': n = int(input()) i=0 while i<n: print(i**2) i += 1
+ 0 comments if name == 'main': n = int(input())
for i in range(n): print(i*i)
+ 0 comments **i think hacker ranke example want to see the code as it ... ** i will try to this code see .... n=int(input("enter the no:")) for i in range(0,n): print(i*i) than i was to try the code all ways give me wronge answer so
+ 0 comments To be recognized as Cable Tray Manufacturers in Pakistan top-ranked electrical manufacturing, trading, and service-providing company through our commitment to core values. We shall introduce ourselves in the international market as a reliable electrical equipment brand through our safe, reliable, affordable, quality products and satisfactory services.
Load more conversations
Sort 1241 Discussions, By:
Please Login in order to post a comment