Management Information Systems Dept.
Advanced Programming – MIS 301
Semester: Fall 2017
Lecturer: Dr. Amira Sayed
TA: Eng. Mohamed Mahmoud
Exercise 1; Functions &
Methods:
Write a program for each question:
Q1- User will input TWO integer numbers then your
program will decide which number is the maximum, the first
one or second one using function is called MAX.
Q2- User will input a TWO integer numbers then your
program will return the multiplication result of these
numbers, using function MULTIPLY.
Q3- User will input an integer number then your program
will display from 0 to your number, using function
DISPLAY.
EX : User enters 5 your program displays 0 1 2 3 4 5
1
Management Information Systems Dept.
Advanced Programming – MIS 301
Q4- User will input an integer number then your program
will display ONLY the Even numbers from 0 to your
number, using function EVEN_DISPLAY.
EX : User enters 10 your program displays 0 2 4 6 8 10