addition.py
1 2 3 4 5 6 7 8 9 |
#!/bin/bash # Take input from user and calculate sum. read -p "Enter first number: " num1 read -p "Enter second number: " num2 sum=$(( $num1 + $num2 )) echo "Sum is: $sum" |
Related posts:
- Javascript Program to Add Two Numbers Which are Provided by User as Input and Calculate Their Sum Full Project For Beginners
- Python 3 Script to Find the Sum of Array or List Using Built in Sum() Method in Python Full Tutorial For Beginners
- Shell Script to Add Two Numbers on Command Line Full Tutorial For Beginners
- Shell Script to Add Two Numbers With Command Line Arguments Full Tutorial For Beginners
- Android Tutorial to Implement ImageButton Widget Control Example to Build Sum of Numbers App in Android Studio Using Java Full Project For Beginners
- Find all Pairs of Numbers Whose Sum is Equal to a Given Number in C++ Full Project For Beginners
- Python 3 Script to Calculate SHA256 Hash of Input Python File Using hashlib Full Project For Beginners
- Python 3 Script to Find Prime Numbers From a Given Range of Numbers Full Tutorial For Beginners
- Brython Tutorial to Run Python Arithmetic Calculator Script in Browser Using HTML5 Full Project For Beginners
- Python 3 Script to Find Prime Numbers Till or Upto N Number or Value Submitted By User Full Tutorial For Beginners
- PM2 Node.js Library to Run Node Applications Forever With Built in Load Balancer Full Tutorial For Beginners
- How to Install Java JDK 15 on Windows 10 ( with JAVA_HOME ) in 2021 and Run Basic Java Program Full Tutorial For Beginners
- Python 3 Script to Find Area of Triangle Using Base and Height Values Input by User Full Tutorial For Beginners
- Python 3 PyQt5 Taking User Input Dialog Using Popup Window in QInputDialog Full Tutorial For Beginners
- Python 3 Script to Swap or Interchange Two Elements or Position Input by User Inside the List Full Example For Beginners
- Python 3 Script to Execute Shell Commands Using Subprocess Module Full Tutorial For Beginners
- Python 3 Script to Find the Sum of Array or List Using For Loop Full Tutorial For Beginners
- C++ Program to Change User Input Array Size Dynamically Full Example Project For Beginners
- Python PyAutoGUI Script to Execute Shell Commands in GUI and Show the Result in Popup Window Desktop App Full Project For Beginners
- Python 3 Shell Sort Algorithm Script to Sort Number Array in Ascending or Descending Order Full Example Project For Beginners