Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

calculefactorail en bash

factorial () { 
    if (($1 == 1))
    then
        echo 1
        return
    else
        echo $(( $( factorial $(($1 - 1)) ) * $1 ))
    fi
}
Comment

calculefactorail en bash

function factorial {
  typeset n=$1
  (( n < 2 )) && echo 1 && return
  echo $(( n * $(factorial $((n-1))) ))
}
Comment

PREVIOUS NEXT
Code Example
Shell :: install netdiscover raspbian 
Shell :: keytool list certs java 
Shell :: get file info linux 
Shell :: https://cloud.google.com/python/docs/reference/cloudscheduler/latest/google.cloud.scheduler_v1.services.cloud_scheduler.CloudSchedulerClient#google_cloud_scheduler_v1_services_cloud_scheduler_CloudSchedulerClient_delete_job 
Shell :: pip_install_packages.bat 
Shell :: how to create malware for android in kali 
Shell :: cashier paddle installation 
Shell :: printing from command line filters pipelines 
Shell :: Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. 
Shell :: Powershell mount disk image and retrieve drive-letter 
Shell :: how to install minfied js 
Shell :: apt install mp3 diags 
Shell :: makefile link libraries 
Shell :: ubuntu disable mouse click on release 
Shell :: gradle dolast 
Shell :: symbolic link sl linux 
Shell :: Substring (position, length) 
Shell :: close all open windows macos 
Shell :: commaand creates a copy of the old file with the new name 
Shell :: macos dd sd card 
Shell :: powershell 
Shell :: linux-armv6l nodejs 
Shell :: how to install conda 
Shell :: cmake root directory 
Shell :: unity for ubuntu 20.04 
Shell :: ssh rembeber password 
Shell :: install youtube-dl on ubuntu 20.04 
Shell :: install ignite-cli 
Shell :: how to install wine-7.1.tar.xz on kali linux 
Shell :: no linux como dar permição ao .git no htdocs 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =