#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 2 years ago
Alternatives and similar repositories for Factorial
Users that are interested in Factorial are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- ☆19Apr 2, 2024Updated 2 years ago
- ☆17Feb 11, 2024Updated 2 years ago
- ☆16Apr 8, 2024Updated 2 years ago
- ☆14Apr 30, 2024Updated 2 years ago
- ☆13Apr 30, 2024Updated 2 years ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- ☆14Apr 11, 2024Updated 2 years ago
- ☆16May 3, 2024Updated 2 years ago
- Config files for my GitHub profile.☆14Apr 30, 2024Updated 2 years ago
- ☆11Dec 19, 2023Updated 2 years ago
- ☆20May 3, 2024Updated 2 years ago
- ☆20May 3, 2024Updated 2 years ago
- ☆20May 3, 2024Updated 2 years ago
- ☆20May 3, 2024Updated 2 years ago
- ☆11Oct 9, 2023Updated 3 years ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- ☆21May 3, 2024Updated 2 years ago
- ☆21May 3, 2024Updated 2 years ago
- ☆21May 3, 2024Updated 2 years ago
- ☆19May 3, 2024Updated 2 years ago
- ☆44May 3, 2024Updated 2 years ago
- ☆13Oct 10, 2023Updated 3 years ago
- ☆11Dec 19, 2023Updated 2 years ago
- ☆11Dec 19, 2023Updated 2 years ago
- ☆11Dec 19, 2023Updated 2 years ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- ☆42Apr 16, 2024Updated 2 years ago
- ☆19May 3, 2024Updated 2 years ago
- ☆10Apr 3, 2024Updated 2 years ago
- Printing pattern using loops☆44May 3, 2024Updated 2 years ago
- ☆15Dec 26, 2023Updated 2 years ago
- ☆19May 3, 2024Updated 2 years ago
- #include <stdio.h> int main() { int number1, number2, sum; printf("Enter two integers: "); scanf("%d %d", &number1,…☆43May 3, 2024Updated 2 years ago
- ☆10Oct 8, 2023Updated 3 years ago
- Config files for my GitHub profile.☆10Oct 8, 2023Updated 3 years ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- ☆53Apr 2, 2024Updated 2 years ago
- #include <stdio.h> int main() { int number1, number2, sum; printf("Enter two integers: "); scanf("%d %d", &number1,…☆45Apr 9, 2024Updated 2 years ago
- ☆26Apr 2, 2024Updated 2 years ago
- ☆42Apr 30, 2024Updated 2 years ago
- ☆12Apr 9, 2024Updated 2 years ago
- ☆42May 3, 2024Updated 2 years ago
- ☆42May 4, 2024Updated 2 years ago