#!/bin/ksh
animal[0]="horse"
animal[1]="Unicorn"
animal[2]="Tiger"
animal[6]="Camel"
print
print "$animal[0]"
print "$animal[1]"
integer marks_score
marks_score[0]=99
marks_score[1]=94
marks_score[2]=96
print -n "enter the score on the final exam:"
read marks_scores[3]
marks_scores[4]=77
In the above script, this is how to declare array of strings and integers.
I am stuck up with a problem.
Actually i want all the array of string values to be printed one by one in my output,i.e, in my output,it should display,like this:
horse
Unicorn
Tiger
Camel
Please fix this problem. Everyone 's help is really appreciated..