Skip to content

TRUEANGLE

BEAUTY AND PLAY

  • GitLab
  • GitHub
  • Configuration
  • AI
  • BLOG
  • LINUX
  • 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
July 2026
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Jun    
TRUEANGLE, Proudly powered by WordPress.