User Tools

Site Tools


bash:adding_values

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

bash:adding_values [2019/12/17 19:09] – created peterbash:adding_values [2020/05/19 08:15] (current) – removed peter
Line 1: Line 1:
-====== BASH - Adding values ====== 
- 
-<code bash> 
-#!/bin/bash 
-echo -n "Enter first number:" 
-read x 
-echo -n "Enter second number:" 
-read y 
-(( sum=x+y )) 
-echo "The result of addition=$sum" 
-</code> 
  
bash/adding_values.1576609765.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki