Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

factorial of a number in c

#include<stdio.h>
void main(){

    int num, i, mul;
    num = 5;
    mul = 1;
    for(i = 1; i <= 5; i++){
        mul = mul * i;
    }
    printf("%d",mul);

}
Source by youtu.be #
 
PREVIOUS NEXT
Tagged: #factorial #number
ADD COMMENT
Topic
Name
6+8 =