Assignment 2

Write a program in R that takes the input from the user only when it is divisible by 12, sorts the input in ascending order, displays it and displays the numbers divisible by 36.

Sample Input: 72,16,66,132,108,48

Expected output: 48 72 108 132. Numbers divisible by 36= 72 108

Same rules as previous assignment apply.