Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

1/n factorial code example

Example 1: factorial of 0

factorial(0) = 1

Example 2: write a program to find factorial of a number

#include<stdio.h>
int main()
{
int i,fact=1,number;
printf("Enter a number: ");
scanf("%d",&number);
for(i=1;i<=number;i++){
fact=fact*i;

Tags:

Cpp Example

Related

install dart from flutter sdk code example repeat video html' code example how work cascade delte code example p5.js createcanvas code example html js programmatically event listener parameter code example sort array by date php code example jjava script check string equality case insensitive code example convert to byte array code example finding the square root of a number python code example give padding in all directions code example how to get this year in php code example how to know git account code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy