Sowmiya081103 / Factorial
#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;…
☆17Updated 9 months ago
Alternatives and similar repositories for Factorial:
Users that are interested in Factorial are comparing it to the libraries listed below
- ☆17Updated 11 months ago
- ☆19Updated 9 months ago
- ☆14Updated 8 months ago
- ☆15Updated 8 months ago
- ☆15Updated 9 months ago
- Config files for my GitHub profile.☆14Updated 8 months ago
- ☆14Updated 9 months ago
- ☆13Updated 8 months ago
- ☆20Updated 8 months ago
- ☆20Updated 8 months ago
- ☆20Updated 8 months ago
- ☆20Updated 8 months ago
- ☆21Updated 8 months ago
- ☆21Updated 8 months ago
- ☆21Updated 8 months ago
- ☆19Updated 8 months ago
- ☆19Updated 8 months ago
- ☆19Updated 8 months ago
- ☆19Updated 8 months ago
- ☆26Updated 9 months ago
- ☆26Updated 9 months ago
- ☆26Updated 9 months ago
- ☆19Updated 8 months ago
- ☆11Updated 8 months ago
- ☆11Updated 8 months ago
- ☆11Updated 8 months ago