#!/bin/csh @ i = $1 set t = "" while ( $i > 0 ) @ p = $i % 2 @ i = $i / 2 set t = $p$t end echo $t
nishin 25 11001
nishin -25 -11001
if ( 条件式 ) then 実行文 : 実行文 endif