#include <stdio.h> int main() { int n, i; unsigned long long fact = 1; printf("Enter an integer: "); scanf("%d", &n); // shows error if the user enters a negative integer if (n < 0) printf("Error! Factorial of a negative number doesn't exist."); else { for (i = 1; i <= n; ++i) { fact *= i; } printf("Factorial of %d = %llu", n, fact); } return 0;…
☆17Apr 3, 2024Updated last year
Alternatives and similar repositories for Factorial
Users that are interested in Factorial are comparing it to the libraries listed below
Sorting:
- ☆17Feb 11, 2024Updated 2 years ago
- ☆19Apr 2, 2024Updated last year
- ☆14Apr 30, 2024Updated last year
- ☆16Apr 8, 2024Updated last year
- ☆13Apr 30, 2024Updated last year
- ☆14Apr 11, 2024Updated last year
- ☆16May 3, 2024Updated last year
- Config files for my GitHub profile.☆14Apr 30, 2024Updated last year
- ☆11Oct 9, 2023Updated 2 years ago
- ☆20May 3, 2024Updated last year
- ☆21May 3, 2024Updated last year
- ☆21May 3, 2024Updated last year
- ☆21May 3, 2024Updated last year
- ☆12Oct 10, 2023Updated 2 years ago
- ☆44May 3, 2024Updated last year
- Smart car parking system aims at providing a easy parking☆10Sep 30, 2023Updated 2 years ago
- ☆10Oct 8, 2023Updated 2 years ago