diff --git a/factorial.py b/factorial.py new file mode 100644 index 00000000..18764932 --- /dev/null +++ b/factorial.py @@ -0,0 +1,7 @@ +def fact(x): + if x == 0: + return 1 + return x * fact(x - 1) + +x=int(input()) +print(fact(x)) \ No newline at end of file diff --git a/find_number.py b/find_number.py new file mode 100644 index 00000000..77280b1d --- /dev/null +++ b/find_number.py @@ -0,0 +1,6 @@ +l=[] +for i in range(2000, 3201): + if (i%7==0) and (i%5!=0): + l.append(str(i)) + +print(','.join(l)) \ No newline at end of file