diff --git a/Python/Sum of first N natural nos. b/Python/Sum of first N natural nos. new file mode 100644 index 0000000..251cc68 --- /dev/null +++ b/Python/Sum of first N natural nos. @@ -0,0 +1,6 @@ +num = int(input("Enter the Number:")) +value = 0 +for i in range(1, num+1): + value = value + i + +print("Sum of N natural numbers:", value)