Print Elements of Array:
Given an array Arr of size N, print all its elements.
N = 7;
var fruits = ['Mango', 'Apple','Pineapple','Orange','Papaya','Grapes','Banana'];
Output: Mango
Apple
Pineapple
Orange
Papaya
Grapes
Banana
N = 5;
var numbers= [1,2,3,4,5];
Output: 1
2
3
4
5
Comments
Post a Comment