logo

Crowdly

Write a program that initialises an array of 5 integers and stores values in the...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Write a program that initialises an array of 5 integers and stores values in them using a for loop. 

  • Modify the program from the question above to now ask the user to enter N integers using the keyboard and store them in a one-dimensional array of type integers. Also, print the square of each array element using a for loop. You can take the value of N from the user ensuring that 0 < N <= 100. 

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на dle.plaksha.edu.in?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!