11/07/2017
DCT1144 Programming Fundamentals LAB 08/11/2017
Write a program statement that will do the following to array MyArray shown below:
int MyArray[10];
for(i=0;i<=9;i++)
MyArray[i]=i*2;
i. Print all elements of array MyArray.
ii. Print all element of array MyArray in reverse.
iii. Print the first element.
iv. Replace the value of third elements with 7.
v. Copy the value of fifth elements into the first one.
vi. Find the sum of the first five elements
vii. Display all even-numbered elements on one line.
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