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

Exercise SELECT CASE - Graduate Programming Courses - UCL Wiki

The document outlines an exercise for a programming course at UCL, focusing on the use of the SELECT CASE structure in a program. It requires the creation of a program that performs different operations based on the value of an integer variable, specifically when it is negative, zero, or a prime number. In all other cases, the program should not perform any actions.

Uploaded by

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

Exercise SELECT CASE - Graduate Programming Courses - UCL Wiki

The document outlines an exercise for a programming course at UCL, focusing on the use of the SELECT CASE structure in a program. It requires the creation of a program that performs different operations based on the value of an integer variable, specifically when it is negative, zero, or a prime number. In all other cases, the program should not perform any actions.

Uploaded by

Ahmad Abba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

12/5/2017 Exercise SELECT CASE - Graduate Programming Courses - UCL Wiki

Pages / … / Fortran Exercises

Exercise SELECT CASE


Created by Sergey Yurchenko on Apr 12, 2015

Write a program with SELECT CASE structure, which does different operations when an integer variable is negative, it is
zero, or it is one of the prime numbers (3,5,7,11,13).. In other cases nothing is done.
No labels

https://wiki.ucl.ac.uk/display/GradPrgCrs/Exercise+SELECT+CASE 1/1

You might also like