Shell script
program to find area of circle.
echo "Enter radius of a circle"
read r
area=$(echo "3.14 * ($r * $r)" |
bc)
echo "Area of circle is $area"
Output:
Enter radius of a circle
3
Area of circle is 28.26
Shell script
program to find area of circle.
echo "Enter radius of a circle"
read r
area=$(echo "3.14 * ($r * $r)" |
bc)
echo "Area of circle is $area"
Output:
Enter radius of a circle
3
Area of circle is 28.26
Program 01: Design algorithm, Write a Program in C++ and Provide Analysis of the Making change Problem by using Greed…