Saturday, May 30, 2020

If statement in Kornshell

#!/bin/ksh
#prompt the user to enter a number
print -n "Enter your age: "
read age
if ((age >= 18))
then
print "Vote"
fi
#operators are ==,!=,>,<,>=,<=

No comments:

Post a Comment