odd even etc
EX.NO:3.hODD OR EVEN NUMBERS Aim: To Write a shell Program on whether a given number odd or even. Algorithm: Step1: Declare the variable A. Step2: Assign value to the variable Step3Perform A modulo 2 and check result if output is 0 Step4: If true print A is even Step5: If false print A is odd Program Code: . . . 0 Sample I/P: enter the no 5 Sample O/P: 5 is odd RESULT: Thus the program was executed and verified successfully. VIVA-VOCE QUESTIONS: 1. How do you determine odd and even? EX.NO:3. i LEAP YEAR Aim: To Write a shell Program on whether a given number leap year or not. Algorithm: Step1: Declare the variable A. Step2: Assign value to the variable Step3: Check if year is divisible by 4 but n...