Write a single command line that defines the variables N444
Write a single command line that defines the variables N=444, M=555, O as the product (multiple) of N and M, and then echoes the value of O.
Solution
================================================================
Write a single command line that defines the variables N=444, M=555, O as the product (multiple) of N and M, and then echoes the value of O.
--------------
Answer:
--------------
N=444; M=555; O=$(($N*$M))
echo $O
---------------------
Explanation:
----------------------
Declaring N=444 and M=555 and Declare O using delcare expression N*M , Inorder to direct access N and M, It must be used in shell by $ symbol.
Hence $N*$M. Finally assing result to O.
Print content of O using echo command.
================================================================
