saamsonn 0 Newbie Poster
!/bin/csh

echo -n "Enter a value> "
set a = $<
echo -n "Enter another value> "
set b = $<
echo "Doing mathematics> "
@ r = $a + $b
echo the sum a + b is $r

tried runing this script and I keep getting this error report
"Add: 5: Add: Syntax error: newline unexpected"
can anyone help me out please

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.