Write program statements that will do the following to array X shown below: -
int[] X= new int[20];
for(i=0;i<=19;i++)
X[i]=i;
i) Print all elements (use loop).
ii) Replace third element with 5.
iii) Copy the elements in the fifth location into the first one.
iv) Increase the sixth element by 10.
v) Print all elements in reverse (use loop).
vi) Sum All elements.
vii) Find the largest element.
Subscribe to:
Post Comments (Atom)
Cara download Installer windows 10 dalam format ISO
1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan. ...
-
ANSWERS TO CHAPTER EXERCISES (CHAPTER 8) Review Questions 1. List and describe various types of output, including technolog...
-
Chapter 1 - Introduction to Computer What is computer? List and describe the five components of Computer. What is Network? What is System So...
-
A. Response to the following statements by circling either T (TRUE) or F (FALSE). [10M] I. 1. Java enables users...
No comments:
Post a Comment