Skip to content

Arun-Saini05/Python-Assignment-3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Assignment 3 - Functions & Modules in Python

This repository contains two tasks:

Task 1: Factorial Using a Function

  • A function fact(n) calculates the factorial of a number using a loop.
  • Example: fact(5) gives 120.

Task 2: Using the Math Module

  • Asks the user to enter a number.
  • Calculates:
    • Square root of the number
    • Natural logarithm (log base e)
    • Sine of the number in radians
  • Uses the Python math module.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages