summaryrefslogtreecommitdiff
path: root/progs/a63.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a63.py')
-rw-r--r--progs/a63.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/progs/a63.py b/progs/a63.py
new file mode 100644
index 0000000..5f9586b
--- /dev/null
+++ b/progs/a63.py
@@ -0,0 +1,11 @@
+def average_Even(n) :
+ if (n% 2!= 0) :
+ return ("Invalid Input")
+ return -1
+ sm = 0
+ count = 0
+ while (n>= 2) :
+ count = count+1
+ sm = sm+n
+ n = n-2
+ return sm // count \ No newline at end of file