Rabu, 01 Agustus 2018

Tcl also the option and OTcl Tutorial for NS2 - Program to find Factorial

Tcl also the option and OTcl Tutorial for NS2 - Program to find Factorial - You might have noticed that Samsung is one of the only brands to opt against a 'notch' at the top like the iPhone X. We're not quite sure why others are so keen to copy Apple and even though some provide a way to switch the feature off, we like the fact Samsung has stuck to the regular style here. add a white pixel, well we have collected a lot of data from the field directly and from many other blogs so very complete his discussion here about Tcl also the option and OTcl Tutorial for NS2 - Program to find Factorial, on this blog we also have to provide the latest automotive information from all the brands associated with the automobile. ok please continue reading:



 Fractorial Computation: tcl script to obtain the value of 10! = 10 * 9 * ... * 1.

  1. get  http://katieandmaxtron.blogspot.com /" rel="nofollow" target="_blank">factorial.tcl and run the script;
  2. write a function to compute 2^x, test your answer.
Execute the script as:

$ tclsh lab1a.tcl
or
$ ns lab1a.tcl



################################################################################


#filename : factorial.tcl
# define function to compute Factorial X!
proc Factorial {x} {
    # define variable
    set result 1
   
    # for loop
    for {set i 1} {$i <= $x} {incr i} {
set result [expr $result * $i]
    }
   
    # return computation result
    return $result
}


#############################################################################


# define function to compute 2^x
proc 2pow {x} {
    # define variable
    set result 1
   
    # for loop
    for {set i 1} {$i <= $x} {incr i} {
# fill in here
    }
   
    # return computation result
    return $result
}
# make function call
set result [Factorial 10]

# output result
puts "$result"

# make function call
set result [2pow 10]

# output result
puts "$result"
https://ikkemunandar.blogspot.com/2016/10/d-unlocker-tools-frp-lock-full-crack.html

Tidak ada komentar:

Posting Komentar