Thursday, September 5, 2024

Factorial of any number

 <script>


    var num = 12;
    var z = 1;
    var i;

    for(i=1;i<=num;i++){

     z = z*i;    

    }

    document.write(z);

</script>




No comments:

Post a Comment

Variable , Assign multiple variable in python with short program

  See video -  Go to video Code : # variable x = 7 y = 5 z = 9 print ( x + y + z ) #assign multiple variable x , y , z = "hello...