loop_exercises
loop_exercises
Write a program that reads an integer N and calculates the sum of the first N natural numbers.
Test Cases:
2. Factorial of a Number
Test Cases:
Write a program that checks whether a given number N is a prime number or not.
Test Cases: