summaryrefslogtreecommitdiff
path: root/progs/a45.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a45.py')
-rw-r--r--progs/a45.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a45.py b/progs/a45.py
new file mode 100644
index 0000000..ec3200b
--- /dev/null
+++ b/progs/a45.py
@@ -0,0 +1,5 @@
+def No_of_cubes(N,K):
+ No = 0
+ No = (N - K + 1)
+ No = pow(No, 3)
+ return No \ No newline at end of file