0% found this document useful (0 votes)
4 views1 page

Exercise

The document outlines a programming exercise with four tasks. Task A requires a program to determine if a user's entered age is that of a teenager. Tasks B, C, and D involve writing functions to calculate the area of a rectangle, check for prime numbers, and display numbers from one to thirty, respectively.

Uploaded by

kyng.adel
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Exercise

The document outlines a programming exercise with four tasks. Task A requires a program to determine if a user's entered age is that of a teenager. Tasks B, C, and D involve writing functions to calculate the area of a rectangle, check for prime numbers, and display numbers from one to thirty, respectively.

Uploaded by

kyng.adel
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

EXERCISE: PROGRAMMING

A) Write a program that displays whether the entered age by a


user is a teenager or not
B) Write a function that returns the area of a rectangle

C) Write a function that checks whether a number is a prime


number or not
D) Write a procedure that displays numbers one to thirty

You might also like