Computer Science, asked by rashmisinhaaug, 7 months ago

write a program to create array of months of a year amd display all the months using for loop​

Answers

Answered by pikachubisht67
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