write a program to create array of months of a year amd display all the months using for loop
Answers
Answered by
2
Answer:
I can probably create a python program. tho i think u mean java/jscript. cuz python doesn't have arrays. we have lists, tuples, dictionaries,etc
Explanation:
name_of_months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
for month in name_of_months:
print(month)
if u copy paste that to an editor, then try on terminal, it works
Similar questions
Math,
3 months ago
English,
3 months ago
Math,
3 months ago
English,
7 months ago
Social Sciences,
7 months ago
Political Science,
10 months ago
Chemistry,
10 months ago