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 7 months ago
Related projects ⓘ
Alternatives and complementary repositories for Factorial
- ☆17Updated 9 months ago
- ☆19Updated 7 months ago
- ☆14Updated 6 months ago
- ☆15Updated 7 months ago
- ☆14Updated 7 months ago
- Config files for my GitHub profile.☆14Updated 6 months ago
- ☆15Updated 6 months ago
- ☆13Updated 6 months ago
- ☆19Updated 6 months ago
- ☆19Updated 6 months ago
- ☆19Updated 6 months ago
- ☆21Updated 6 months ago
- ☆21Updated 6 months ago
- ☆21Updated 6 months ago
- ☆11Updated 7 months ago
- ☆11Updated 6 months ago
- ☆26Updated 7 months ago
- ☆19Updated 6 months ago
- ☆12Updated last year
- ☆20Updated 6 months ago
- ☆20Updated 6 months ago
- ☆20Updated 6 months ago
- ☆11Updated 6 months ago
- ☆26Updated 7 months ago
- ☆26Updated 7 months ago
- ☆19Updated 6 months ago