Programming Assignment : Homework 3
Program 1 : Generate random number and check if it is prime or not
Sample Output:
Program 2 : Calculate factorial of a number using random
Sample Output:
Program 3 : Generate 5 random numbers and get their average
Sample Output:
Program 4 : Generate a random number and check if it is a perfect square or not
Sample Output:
Program 5 : Calculate tip for a bill with random tip percentage
Sample Output: