Skip to content

TRUEANGLE

BEAUTY AND PLAY

  • GitLab
  • GitHub
  • Configuration
  • AI
  • BLOG
  • ABOUT
    • ABOUT
    • Perception Style
    • Motivation

Tag Archives: factorial

How to write an algorithm to find factorial of a given number ?

#include <stdio.h> factorial() { int p = 1; int i = 1; int n; printf(“Enter a Number greater than 0 \n”); scanf(“%d”,&n); while ( i <= n) { p = p * i; i = i + 1; } printf(“Factorial of the input is %d \n”,p); }

Posted byjeffrinAugust 21, 2014Posted inC, mathematics, Programming LanguagesTags: factorial
June 2026
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  
« May    
TRUEANGLE, Proudly powered by WordPress.