Skip to content

Commit

Permalink
2 files are added
Browse files Browse the repository at this point in the history
  • Loading branch information
26rudra committed Jul 18, 2022
1 parent 0568876 commit 237d425
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions foureighteen.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
n = input('enter a number to check whether its palindrome or not : ')
if n[::] == n[-1::-1]:
print('it is palindrome')
else:
print('it is not palindrome')
7 changes: 7 additions & 0 deletions threeeighteen.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#print factorial of n
n = int(input('enter a number to find its factorial'))
fact = 1
for i in range(1,n+1):
fact = fact * i
print(fact)

0 comments on commit 237d425

Please sign in to comment.