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