[Cshell] four rules of arithmetic

#!/bin/csh

@ sum = “$1” + “$2”
@ s  = “$1” – “$2”
@ u  = “$1” * “$2”

echo “$1 + $2 = $sum”
echo “$1 – $2 = $s”
echo “$1 * $2 = $u”

 

 

https://www.linux.co.kr/home2/board/subbs/board.php?bo_table=programming&wr_id=1799  (KOREAN)

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s