logo

Crowdly

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

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

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. 

More questions like this

Want instant access to all verified answers on dle.plaksha.edu.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!