Write a shell script to find the square of number?



echo “ enter a number”
read a
square = `expr $a \* $a`
echo $square

OUTPUT:

enter a number 
2
square    4

Comments

Popular posts from this blog

Write a program to add two number using inline function in C++?

Traversing of elements program with algorithm and Flowchart