Skip to content

CODING-ALPHA/Factorial-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Factorial Calculator

  • This project is a factorial calculator built using HTML, CSS, and JavaScript. It calculates the factorial of a non-negative integer entered by the user.

Features

  • Calculates factorials of non-negative integers.
  • Validates user input to ensure it's a non-negative integer.
  • Provides informative error messages for invalid input.

Getting Started

Usage

  • Enter a non-negative integer in the input field.
  • Click the "Calculate" button.
  • If the input is valid, the calculated factorial will be displayed below the input field.
  • If the input is invalid, an error message will be displayed below the input field.

Code Structure

  • index.html: The main HTML file containing the user interface and embedding JavaScript code.
  • style.css: The CSS file that styles the calculator's appearance.
  • script.js: The JavaScript file containing the logic for calculating factorials and validating user input.

Technologies Used

  • HTML: Hypertext Markup Language, used for creating the structure and content of the web page.
  • CSS: Cascading Style Sheets, used for styling the appearance of the web page.
  • JavaScript: A scripting language used to add interactivity and functionality to the web page.

Error Handling

  • The calculator validates user input to ensure it's a non-negative integer. If the input is invalid, an error message will be displayed.

About

A simple Factorial Calculator built using HTML, CSS, and JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published