Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

DEPARTMENT OF ELECTRICAL ENGINEERING

EE171: Introduction to Computers & Programming for Engineers


Tutorial Six – Arrays
1. Write a C program which stores five numbers 10, 20, 30, 40,
and 50 into a single array variable. The program should then
calculate and display the sum of all elements of the array.

2. Write a C program which asks the user to enter any five


integers. These integers should be stored into an array. The
program should finally tell which integer is the largest.

You might also like