---
title: "#factorial articles | Hashnode"
description: "Explore 21 articles tagged #factorial on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/factorial"
---

Tag

# #factorial

21 posts · 1 followers

[Gowtham Kalyan](https://hashnode.com/@unlimited) · [Feb 23](https://hashnode.com/posts/java-program-to-find-factorial-using-recursion/699c3f781ff70686f28ef9bb)

### [Java Program to Find Factorial Using Recursion](https://globalblogs.hashnode.dev/java-program-to-find-factorial-using-recursion?utm_source=hashnode&utm_medium=feed)

Learn how to calculate factorial in Java using recursion with step-by-step explanation, example program, output, and interview-friendly concepts for b

2 min read · [globalblogs.hashnode.dev](https://globalblogs.hashnode.dev/java-program-to-find-factorial-using-recursion?utm_source=hashnode&utm_medium=feed)

[Faizan Shaikh](https://hashnode.com/@faizanshaikhdevops) · [Feb 12, 2025](https://hashnode.com/posts/understanding-factorial-with-a-simple-story-code-implementation/67ac3dd53f6d9ad77682dc55)

### [Understanding Factorial with a Simple Story & Code Implementation](https://faizanshaikh.hashnode.dev/understanding-factorial-with-a-simple-story-code-implementation?utm_source=hashnode&utm_medium=feed)

Factorial is a fundamental mathematical concept used in many programming scenarios. Let's break it down in an easy-to-understand way with a relatable story! 🎭 The Cinema Hall Story Imagine 4 friends - A, B, C, and D - booked 4 seats in a cinema hall...

3 min read · [faizanshaikh.hashnode.dev](https://faizanshaikh.hashnode.dev/understanding-factorial-with-a-simple-story-code-implementation?utm_source=hashnode&utm_medium=feed)

[Shivani Sinha](https://hashnode.com/@chiragha) · [Sep 8, 2024](https://hashnode.com/posts/java-programming-interview-questions-with-answers-part-1/66dda76077ea43533e07663e)

### [Java Programming Interview Questions with Answers (Part-1)](https://chiragha.hashnode.dev/java-programming-interview-questions-with-answers-part-1?utm_source=hashnode&utm_medium=feed)

Hello Friends, I hope you guys are safe and doing great work. Today I am going to discuss some Java interview questions. I am trying to give as simple codes as possible. I have been preparing this MEGA list for quite some time and now It's ready to s...

2 min read · [chiragha.hashnode.dev](https://chiragha.hashnode.dev/java-programming-interview-questions-with-answers-part-1?utm_source=hashnode&utm_medium=feed)

[Kites Garb](https://hashnode.com/@kitesgarb) · [Aug 26, 2024](https://hashnode.com/posts/generate-factorial/66cd0a1061d32a2a44b69908)

### [Generate factorial](https://kites.hashnode.dev/generate-factorial?utm_source=hashnode&utm_medium=feed)

def factorial(n): if n == 0: return 1 else: return n \* factorial(n-1) # Example usage print(factorial(5)) # Output: 120

1 min read · [kites.hashnode.dev](https://kites.hashnode.dev/generate-factorial?utm_source=hashnode&utm_medium=feed)

[SUDHIR PATEL](https://hashnode.com/@sudhircyber) · [May 18, 2024](https://hashnode.com/posts/simple-java-interface-code-examples/6648e3e8c43fece81e89139d)

### [Simple Java Interface Code Examples](https://sudhircyber.hashnode.dev/simple-java-interface-code-examples?utm_source=hashnode&utm_medium=feed)

here Java code for the interface implementations is written as a factorial of numbers and checks the number even or odd.

2 min read · [sudhircyber.hashnode.dev](https://sudhircyber.hashnode.dev/simple-java-interface-code-examples?utm_source=hashnode&utm_medium=feed)

[Gagan G Saralaya](https://hashnode.com/@GaganG) · [Mar 6, 2024](https://hashnode.com/posts/c-program-to-find-the-factorial-of-a-number/65e89c26db320ebc2c6b1706)

### [C program to find the factorial of a number.](https://gagang.hashnode.dev/c-program-to-find-the-factorial-of-a-number?utm_source=hashnode&utm_medium=feed)

Here is a program to find the factorial of a number. #include<stdio.h> int fac(int n); int main() { printf("Here is a program to find the factorial of a number using functions\\n"); printf("Enter a num to find the factorial:"); int n = 0...

1 min read · [gagang.hashnode.dev](https://gagang.hashnode.dev/c-program-to-find-the-factorial-of-a-number?utm_source=hashnode&utm_medium=feed)

[Jyotiprakash Mishra](https://hashnode.com/@jpmishra) · [Dec 27, 2023](https://hashnode.com/posts/recursion-can-make-your-head-spin/658c825b28ac950831fd8bd3)

### [Recursion can make your head spin!](https://blog.jyotiprakash.org/recursion-can-make-your-head-spin?utm_source=hashnode&utm_medium=feed)

Recursion is a programming concept where a function calls itself to solve a problem. To help you understand recursion in C, let's go through a simple example: calculating the factorial of a number. The factorial of a non-negative integer (n), denoted...

6 min read · [blog.jyotiprakash.org](https://blog.jyotiprakash.org/recursion-can-make-your-head-spin?utm_source=hashnode&utm_medium=feed)

[RuchikaRawani](https://hashnode.com/@ruchika165) · [Nov 26, 2023](https://hashnode.com/posts/a-beginners-guide-to-recursion-understanding-factorials-in-c/6563a96970e61c4c63f4649b)

### [A Beginner's Guide to Recursion: Understanding Factorials in C++](https://ruchikarawani.hashnode.dev/a-beginners-guide-to-recursion-understanding-factorials-in-c?utm_source=hashnode&utm_medium=feed)

Navigating the Basics of Recursive Functions and Factorial Computation

2 min read · [ruchikarawani.hashnode.dev](https://ruchikarawani.hashnode.dev/a-beginners-guide-to-recursion-understanding-factorials-in-c?utm_source=hashnode&utm_medium=feed)

[Sirisha Challagiri](https://hashnode.com/@Siri2316) · [Nov 15, 2023](https://hashnode.com/posts/factorial-of-a-number/6554b1428a06110e9c48e1a2)

### [Factorial of a number](https://sirishachallagiri.hashnode.dev/factorial-of-a-number?utm_source=hashnode&utm_medium=feed)

Factorial of a non-negative number is the multiplication of all positive numbers that are smaller than are equal to n. Formula: n! = n\*(n-1)\\(n-2)\*... 2\\1 n=5 => 5\*4\*3\*2\*1 n=5 => 1\*2\*3\*4\*5 factorial of 5 is 120 0! = 1 Factorial using for loop: public...

2 min read · [sirishachallagiri.hashnode.dev](https://sirishachallagiri.hashnode.dev/factorial-of-a-number?utm_source=hashnode&utm_medium=feed)

[Sawan Badhwar](https://hashnode.com/@Sawan1367) · [Oct 31, 2023](https://hashnode.com/posts/recursion-problems/65412ec3e86d55415695121e)

### [Recursion Problems](https://joyboy.dev/recursion-problems?utm_source=hashnode&utm_medium=feed)

Hello everyone, I hope that you all are doing great and being wary of the weather changes. So, today it's my day 4 since my 100-day DSA challenge began. Till now we discussed a few things like time complexity, space complexity and recursion. But I do...

2 min read · [joyboy.dev](https://joyboy.dev/recursion-problems?utm_source=hashnode&utm_medium=feed)
