Question related to print the array

QUESTION 1> Suppose we have 1 array : local!arr : {a,b,b,c,c,c,d,d,d,d}. Then how we will print in the pattern like

a,

  b,b

   c,c,c

   d,d,d,d.

QUESTION 2>Suppose we have 2 - arr1: {"apple","banana","mango"},  arr2:{"a","b","c"}.

How we will print if we choose "a" then it should print "apple" , if we choose "b" then it should print "banana" , if we choose "c" , it should print "mango".

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data