MODULAR PROGRAMMING 2080
[SELECTION STRUCTURE]
SEE COMPUTER SCIENCE 2080
- WAP to check whether the given no. is divisible by 5 or not using function procedure.
- WAP check whether the given no. is divisible by 3 and 7 or not using sub procedure.
- WAP to check whether the given no. is positive, negative or zero function procedure.
- WAP to input any number and check whether the given no. is positive or negative using sub procedure.
- WAP to input a year and display whether that year is a leap year or not. [divisible by 4 but not by 100] using function procedure.
- WAP to input any number and display whether it is odd or even using sub procedure.
- Input the age of a person and find out whether the person is eligible to drive or not. [age >=16] using sub procedure
- Input the age of a person and find out whether the person is eligible to vote or not. [age >=18] using function procedure
- WAP to enter any two numbers and display the greater one using function procedure.
- WAP to enter any two numbers and display the smaller one using sub procedure.
- WAP to enter any three numbers and display the greatest one using sub procedure.
- WAP to enter any three numbers and display the smallest one function procedure.
- WAP to enter any three numbers and display the middle number using sub procedure.
- WAP to enter any three numbers and display the greatest using function and smallest using sub procedure.
- WAP to enter any three numbers and display the difference between greatest smallest number using function procedure.
No comments:
Post a Comment