Docsity

Array Reversal and Rectangle Calculations Lab, Exercises of Programming Languages

Toggle sidebar
bg1
14.05.2019
HACETTEPE UNIVERSITY
DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING
ELE-118 COMPUTERS AND PROGRAMMING II LABORATORY
EXPERIMENT-3
Q1) Write a program that takes five numbers from the user and puts them into an array. Then
it must reverse the array elements in a loop and print them as shown below,
Q2) Write a C program that computes the area and perimeter of a rectangle with using
pointers.
Hint :

Partial preview of the text

Download Array Reversal and Rectangle Calculations Lab and more Exercises Programming Languages in PDF only on Docsity!

HACETTEPE UNIVERSITY

DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

ELE-118 COMPUTERS AND PROGRAMMING II LABORATORY

EXPERIMENT- 3

Q1) Write a program that takes five numbers from the user and puts them into an array. Then it must reverse the array elements in a loop and print them as shown below, Q2) Write a C program that computes the area and perimeter of a rectangle with using pointers. Hint :