Write A C Program To Check Whether A Number Is Even Or Odd

First, we count the total number of digits in the number. Lets write a C program to find sum of all the even numbers between range or between 2 integers input by the user. Write a program using a switch statement to check whether a number given by the user is odd or even. Find gcd of a number using recursion in c program. Here first the number that is obtained is checked whether the number is prime or not and then the largest factor of it is displayed. The program must then write the final array. C-Language के विभिन्न Control Statements या Programming Constructs को जानने के लिए देखें—Control statements in C. Just to make an example, consider 15D is If you consider the binary representation of an integer, the least significant bit is 0 when the number is even, 1 when the number is odd. I will not write a program for you submit as your homework. (Even Numbers) Write a program that inputs a series of integers and passes them one at a time to function isEven, which uses the modulus operator to determine whether an integer is even. Source Code. If number is divisible by any number from 2 to one less than the number (i. C Programming Code to Check Even or Odd. As a new user of c++ and windows visual c++, I need help with my homework. Imagine you write a program that requests a student’s age from the user. #CodingSolutions C Program to Check Whether a Number is Even or Odd Hello Dear VIEWERS here is another video from CodingSolutions Click to subscribe: https://goo. The script should work for different names in the input file. For example, 11 can only be exactly divided by 1 and the number itself, so 11 is a prime number. Add minimum number to an array so that the sum becomes even in C programming; C/C++ Program for nth Catalan Number? C Program to Check if all digits of a number divide it; Concatenate a string given number of times in C++ programming; Remove the child node of a specific element in JavaScript? Superperfect Number in C programming. We have written the program in three different ways, using if else statement, using switch case, user-defined method. Write a program that counts the number of zeros, odd and even numbers. Write a C, C++ program to print square of a number. Example 1, 3, 5, …. I could not find a function to do it. Write a c program to find the perimeter of a circle, rectangle and triangle. Even or Odd number can be tested by bitwise operator too. C program to check whether the input number is odd or even by Venkatesh Macha · Published February 18, 2014 · Updated February 27, 2017 Spread the love. If it is, the number you are checking is obviously triangular. The even numbers will be divisable by 2. Check for positive-negative see C++ Program To Check Number Is Positive Or Negative. In C++ CODING we take a FOR LOOP which will start from 1 up to number that has entered to check whether it is PRIME NUMBER or not with in FOR LOOP we set an IF condition and placed counter (count++) variable in its body so whenever a number from 1 to number which has entered to check divides than IF condition becomes true and counter variable. Write a program in Golang to draw a Cuboid of 2 X 3 X 6 dimension. The C++ program is successfully compiled and run on a Linux system. But in term of programming for find even number we check remainder of number is zero or not, If remainder is equal to zero that means number is divisible by 2. If it is, the remainder of their division, which is what remainder gives you, is zero. check divisible, odd even, positive, negative, zer greatest smallest and middle number; sum of [digits, odd digits, even digits, square of count and display the digits, odd digits even digi palindrome and armstrong programs; prime and composite qbasic programs; factor, factorial , prime factor and prime factori. Write C++ program to print even or odd numbers in given range using recursion. C Program Write a Program to Check the Char is Vowel or Not ; DECIMAL to BINARY conversion - C program ; C Program Write a Program to Check the Number Odd or Even ; C Program Program to Calculate the Roots of a Quadratic Equation ; Write a Program to Copy a File using File Handling Functions. Write a program to Delete a Tree in C programming. Next, in a for loop with loop counter i running from 2 to n-1, we divide the number n with i and see if the remainder is zero. C-Language के विभिन्न Control Statements या Programming Constructs को जानने के लिए देखें—Control statements in C. Do this in one pass and without using any extra memory. Write a program in Golang to draw a Cuboid of 2 X 3 X 6 dimension. I understand I need to use a nested loop. Flowchart to check positive number. greater than half of the first number. Logic to implement. Get three numbers num1, num2 and num3 and find the smallest one among num1,num2 and num3. find whether the number is odd or even Program to check. On each iteration one number is popped from C. It means, if the summation of cube of all digits of any number is the number itself is called an Armstrong number. So here we will use it to divide a number by 2 and find the remainder. In this c / cpp programming language video tutorial / lecture for beginners, you will learn how to write a program to check whether a number entered by the user is even or odd. (Hint: Use the modulus operator. Write C program to check even or odd number using switch case. Take an iterator in a for loop, using which, all the elements of the array are accessed. #CodingSolutions C Program to Check Whether a Number is Even or Odd Hello Dear VIEWERS here is another video from CodingSolutions Click to subscribe: https://goo. Enter a number: 5 Factorial of 5 is: 120. Prime number is a number that is greater than 1 and divided by 1 or itself. As soon as a remainder of 0 is encountered the program moves on to the next incremented value above or below the seed. Don't use loops like goto,for,while statements etc. Write a program that reads an integer and checks whether it is odd or even. NOTE - Two (2) is the only even prime number. Wap to check whether a number is even or odd using ternary operator. An int64 can represent all integers in the interval [-2^63,2^63-1]. I have used Code::blocks 12 compiler for debugging purpose. The even numbers will be divisable by 2. Contribute your code and comments through Disqus. Find gcd of a number using recursion in c program. Blog Stats. Check EVEN or ODD in Java: In this program, we will input an integer number and check whether it is EVEN or ODD. If the input array is [10, 12, 20, 30, 25, 40, 32, 31, 35, 50, 60], your program should be able to find that the subarray lies between the indexes 3 and 8. C program to check whether a given number is EVEN or ODD: Here, we are reading an integer number from the user and checking whether it is EVEN or ODD. To understand this example, you should have the knowledge of following R programming topics:. Example: 1, 9, -13, 19. C++ Program to print series of odd numbers in descending order from a given number 22. ,salary,grade etc. Improve this sample solution and post your code through Disqus. Write a program to list all even numbers between two numbers. If it is not able to write withot a loop u can use while statement. C program for EVEN or ODD: Here, we are reading an integer number from the user and checking whether it is EVEN or ODD. To generate first and follow for given Grammar > C ProgramSystem Programming and Compiler ConstructionHere's a C Program to generate First and Follow for a give Grammar. Write a program to determine whether the year is a leap year or not. A number is said even number if it is exactly divisible by 2. one whose Binary counterpart has even number of. Even Number: An even number is an integer that is exactly divisible by 2. Python Basic: Exercise-21 with Solution. Print “Even Numbers are : ” Next. RAPTOR is a flowchart-based programming environment, designed to help students to visualize their algorithms. A number is odd if it has 1 as its rightmost bit in bitwise representation. are even numbers. This website is designed for readers who have less or no programming experience. Below are the flowchart and pseudocode to check whether READ number remainder=number%2 IF remainder==0 WRITE "Even Number" ELSE WRITE "Odd Number" ENDIF. As far as programming goes, I agree that an even number is [n MOD 2 = 0] or [n % 2 == 0]. Program to calculate simple interest and compound interest; Difference Between PIPE and FIFO; Write a C program to find two's complement of a number. If the number is perfectly divisible by 2, test expression number%2 == 0 evaluates to 1 (true) and the number is even. C++ Program to print series of odd numbers in descending order from a given number 22. Write a program in Golang to draw a Cuboid of 2 X 3 X 6 dimension. C++ Program Write a Program to Enter Char or Number and Check its ASCII Code #include using namespace std ; int C++ program to find prime numbers in a given range Write a C++ program to print all the prime numbers with in the given range #include #include using. Program to check whether the triangle is equilateral, isosceles and scalene. An odd number is any number that are not perfectly divisible by 2. March (2). Im comfortable with the whole output bit in the 2nd line above, but i have no idea where to start with regards to analysing the number!. Shell Script to find Greatest of Three numbers. else conditional statement is used to check weather a number entered by user is Even or Odd. To check if a number is even or odd needs brilliant code. If the input array is [10, 12, 20, 30, 25, 40, 32, 31, 35, 50, 60], your program should be able to find that the subarray lies between the indexes 3 and 8. Shell Script to find Number is Even or Odd. In this program, if. Shell Script to find Side of a Square. (Note: if your programming language does not support arbitrary size. I am currently working on an Excel VBA project that requires me to check if the number obtained by Excel is an even number, or if it is an odd number. to check whether a number is even or odd in C have less or no programming experience. I understand that an even function satisfies f(-t) = f(t) and an odd function satisfies f(-t) = -f(t) Can I determine whether this function is even or. My assignment for my programming class is to create a script using JavaScript that asks a user to enter a number in a pop up dialog box on their browser, and then tell them if they entered an odd or an even number. Write a program that asks the user to type 10 integers of an array and an integer value V. Flowchart to check positive number. Write C program to check even or odd number using switch case Introduction. Program to find even or odd number using switch case: Jan 23: Using the CHECKS table from earlier today, write a query to return just the chec Dec 21: Prolog program to find whether the length of a list is even or odd : Feb 22: how to check for odd or even? Apr 04: Check odd or even: Jan 14: Appli which separates odd and even numbers from. Program to check whether the triangle is equilateral, isosceles and scalene. C Program to demonstrate use of null pointer. Write a Java Odd Even Program to show you, How to check whether the given number is Odd or Even number using If Statement and Conditional Operator with example. If the number is not divisible by 2 then that number will be odd number. Let's see the prime number program in C#. Then, whether the number is perfectly divisible by 2 or not is checked using modulus operator. Odd Number: An odd number is an integer which is not exactly divisible by 2. Odd numbers are those which are not divisible by 2. Check ODD or EVEN using 8085 Microprocessor LXI H,8500 MOV A,M MVI B ,02H MVI C,00 L1: SUB B INR C JNC L1 ADD B CPI 00H JZ L2 MVI D 01H MOV A,D L2: STA 860 GCD of two numbers using 8085 MIcroprocessor. Write an algorithm to find out that given number is odd or even. The entered number is then stored in a variable num. Do this in one pass and without using any extra memory. write a c++program by using if statement to read a number and check whether it is positive or negative To write a C program to determine if something is odd or even you need to be a programmer. Rather than recomputing sqrt(i) each time through the inner loop, compute it just once for each new value of i (that is, compute it at the beginning of the body of the outer loop, just before the beginning of the inner loop) and assign its. C++ Program to print series of odd numbers in descending order from a given number 22. check divisible, odd even, positive, negative, zer greatest smallest and middle number; sum of [digits, odd digits, even digits, square of count and display the digits, odd digits even digi palindrome and armstrong programs; prime and composite qbasic programs; factor, factorial , prime factor and prime factori. ) I was given this assignment in my c++. In this example, ifelse statement is used to check whether a number entered by the user is even or odd. For Separate Even and Odd Elements of Array we take three array and one array for insert all Array Elements second for even elements and third for odd elements. In C++ CODING we take a FOR LOOP which will start from 1 up to number that has entered to check whether it is PRIME NUMBER or not with in FOR LOOP we set an IF condition and placed counter (count++) variable in its body so whenever a number from 1 to number which has entered to check divides than IF condition becomes true and counter variable. Write a program to check whether the number is even or odd. Program to check a number is even or odd using conditional operator. The script should work for different names in the input file. C Program Write a Program to Check the Char is Vowel or Not ; DECIMAL to BINARY conversion - C program ; C Program Write a Program to Check the Number Odd or Even ; C Program Program to Calculate the Roots of a Quadratic Equation ; Write a Program to Copy a File using File Handling Functions. Write a C Program to convert number to words. If number is divisible by any number from 2 to one less than the number (i. Write a C C++ program to check odd or even number. If the remainder is zero, then the number is not prime. We can write a C Program to find the smallest (lowest or minimum) among 3 numbers. Each number occupies a sequence of byte in the memory. Write a c program for division of large number (larger than long int) 4. C program to check prime, strong, armstrong or perfect numbers using functions. Here are few methods to do the same. #include #include void main. Write a c program to find the perimeter of a circle, rectangle and triangle. It means, if the summation of cube of all digits of any number is the number itself is called an Armstrong number. A number is odd if it has 1 as its rightmost bit in bitwise representation. Even numbers are those which are divisible by 2, and which numbers are not divisible 2 is called odd numbers. ) Enter Number: 3 3 is an odd number. declare no number(4):=1; sqr number(4); begin loop sqr:=power(no,2);. ones (hence, Evil), whereas numbers that has Odd. to check whether a number is even or odd in C have less or no programming experience. Besides, factorial length grows fast along with execution time of Brainfuck program, so the above code is limited to calculating and printing first 7 factorials. Next: Write a C# Sharp program to check whether a given number is positive or negative. Input a number from user. Odd Or Even Example C Program Using function Definition A formal definition of an even number is that it is an integer of the form n = 2k, where k is an integer;[3] it can then be shown that an odd number is an integer of the form n = 2k + 1. Filter even or odd numbers with formula and Filter function You can follow these steps to filter all even numbers and hide all odd numbers in Column A. But if I were trying to identify the furthest-right digit as "even" or "odd", I'd prolly use a substring to single out that digit, convert to integer, then check it as [digit Mod 2]. Rather than recomputing sqrt(i) each time through the inner loop, compute it just once for each new value of i (that is, compute it at the beginning of the body of the outer loop, just before the beginning of the inner loop) and assign its. But in term of programming for find even number we check remainder of number is zero or not, If remainder is equal to zero that means number is divisible by 2. I have to write a program to determine if a number is odd or even. Python program to check whether a number is Palindrome or not By avinash September 12, 2016 October 10, 2019 exception handling , input , numbers , operators , palindrome , raw input , slice A simple python program which checks whether a number is a palindrome or not. Logic: Take a number. Example 2 , 4, 6, 8 …. PROGRAM TO GENERATE MULTIPLICATION TABLE FOR A NUMBER 'n' view answer ; PROGRAM TO GENERATE FIBONACCI SERIES UPTO 'n' NUMBERS view answer ; PROGRAM TO CHECK A STRING FOR PALINDROME view answer ; PROGRAM TO REVERSE A GIVEN STRING view answer ; PROGRAM TO FIND ODD & EVEN NUMBERS view answer ; Query to find the #week from the date given view answer. #include Write a c program to check given number is palindrome number or not. In this c / cpp programming language video tutorial / lecture for beginners, you will learn how to write a program to check whether a number entered by the user is even or odd. Lets write a C program to find sum of all the even numbers between range or between 2 integers input by the user. Comments are not programming statements. Even or Odd number can be tested by bitwise operator too. Find Even numbers between two numbers Enter the Starting value : 25 Enter the End value : 38 26 is Even number 28 is Even number 30 is Even number 32 is Even number 34 is Even number 36 is Even number 38 is Even number. $\endgroup$ – mau Mar 24 '13 at 10:56 1 $\begingroup$ Let's begin with something 'simpler' : recognize that a number is $0$. C Program with Algorithm to check whether the given year is a leap year or not. Write a c program for division of large number (larger than long int) 4. Next: Write a C# Sharp program to check whether a given number is positive or negative. C Program to accept five integer elements in an array and print odd numbers. We can do this by using a simple if-else statement. For example, the main is a function and every program execution starts from the main function in C programming. If it is, the number you are checking is obviously triangular. c program to check whether input alphabet is a vow c program to multiply exponent and base; c program to Reverse Digits; c program to check value is prime no or not; c program to check user value is leap year or not; C program to check value is even or odd; C program to convert Fahrenheit degrees into Centi. The cuboid can be represented graphically, or in ASCII art, depending on the language capabilities. But you can use any C programming language compiler as per your availability. For example: 1, 7, -11, 15. Write a C program that will ask the user for numbers (integers) until a zero is entered. Check if the input number is greater than 20 and odd by using the logical operators: a. Answer: Prime number is number greater than 1. Say 5: Now the next step is to enter those numbers in a series order. contains a number. Reply; Java program to find average of consecutive N Odd no. C program and algorithm to find GCD and LCM; Menu driven C program and algorithm to perform pal C program and algorithm to print prime numbers upt C program and algorithm to print numbers upto a li C program and algorithm to generate a pattern; C program and algorithm to check whether a number. This C# Program checks if a given integer is Odd or Even. In the decimal number system, even numbers are exactly divisible by two while odd numbers are not. I accomplished this using the Mod operator. an odd number could be an integer that contains a remainder of one upon division by two. the use is an Evil number or not. If remainder is 0 then number is even otherwise odd. PL/SQL Program to Check Number is Odd or Even - The Crazy Programmer Here you will get pl/sql program to check number is odd or even. It correctly handles negative and positive numbers. C program to print Memory Addresses of Variables. Find Even numbers between two numbers Enter the Starting value : 25 Enter the End value : 38 26 is Even number 28 is Even number 30 is Even number 32 is Even number 34 is Even number 36 is Even number 38 is Even number. Write a C function to check if a given integer is odd or even using bitwise operators. If the number is perfectly divisible by 2, test expression. The following is a C program to check whether a number is How it works. I have to write a program to determine if a number is odd or even. The parity of a number is whether it is odd or even. (Note: if your programming language does not support arbitrary size. Python Program to Check if a Number is Odd or Even In this example, you will learn to check whether a number entered by the user is even or odd. The numbers which are divisible by 2 are EVEN numbers and which are not divisible by 0. Logic to check even or odd number using switchcase. A number is odd if it has 1 as its rightmost bit in bitwise representation. Source Code. Write an app that reads an integer, then determines and displays whether the integer is odd or even. Write a C, C++ program to print square of a number. C Programming Code to Check Number is Armstrong or Not. Write a program to list all even numbers between two numbers. If it is not able to write withot a loop u can use while statement. Following C program ask from the user to enter a number, to check and display whether the given number is an even/odd number. C program to print even numbers between 1 to 100 using for and while loop. If LSB is 1 then the given number is odd otherwise even. In this article, we will discuss to check if a number is prime or not. There IS one interesting case in the code, where the author tests to see if -(2^63) stored as an int64 number is odd or even. Write a program to check the given number is a prime number or not? Write a program to find the given number is Armstrong number or not? Write a program to convert binary to decimal number. We are going to write a program in c which can check if the candidate is eligible to vote or not. if else ,switch statements can also be used. That’s exactly what we need! We know that EVEN numbers are those that can be equally (read without a remainder) divided into two groups. Krishna Murthy Number : It is a number which is equal to the sum of the factorials of all its digits. Free Java, Android Tutorials. I will not write a program for you submit as your homework. Imagine you write a program that requests a student’s age from the user. To test whether x is odd, we can write the test x % 2 == 1, that is, whether the remainder is 1 after dividing by 2. DISPLAY "Enter the Number - " 3. This C# Program checks if a given integer is Odd or Even. You can then use a conditional statement to check whether the number is odd or even. Odd Number: An odd number is an integer which is not exactly divisible by 2. What if you want to sum all the odd numbers and also all the even numbers between 1 and 1000? You could declare two variables, sumOdd and sumEven, to keep the two sums. Previous: Write a C# Sharp program to accept two integers and check whether they are equal or not. How to check even or odd using conditional operator in C. of occurrence in array No comments. #include int main Then, whether num is perfectly divisible by 2 or not is checked using the modulus % operator. > or < checks if the value on the left of the operator is greater/less than the value on the right side of the operator; b. For example, 3, 5, 7, 9 are odd numbers. , a message will be displayed showing whether the number is odd or even. For example, you’ll divide 102 by 2, then the result is (102/2 =) 51. Program for Pascal Triangle in C and C++ 25. , 10, as the binary of 10 is 1010 which has 2. Even or Odd number can be tested by bitwise operator too. Even the. Arithmetic on even and odd numbers. Write A Program To Accept Two Number And Check If Write A Program To Accept A Number And Print If Th Write A Program To Accept Two Number And Print Lar Check Given Number Is Even Or Odd Using Bitwise Op Check Given Number Is Even Or Odd Using Ternary Co Check Given Number Is Even Or Odd Problem Solution Day 7: Arrays!. Take an iterator in a for loop, using which, all the elements of the array are accessed. Store it in some variable say num. The modulus operator % is used to find remainder of any number. Flowchart To Find Whether a Number is Even or Odd Pseudocode to Find Whether a Number is Even or Odd. Q 5) Write a C++ program to search an element by using binary search. Source Code. Im comfortable with the whole output bit in the 2nd line above, but i have no idea where to start with regards to analysing the number!. Shell Script to find Greatest of Three numbers. C program to print hello world without using semicolon. Logic to check even or odd. Write a C++ program to check whether the number is prime or not. C program with very large numbers 1. In this sample, when dividing i by 2, there will be no remainder for the even observations (2,4,6,8 and 10). Shell Script to Check Leap Year ; Shell Script to find Greatest of Three numbers ; Shell Script to Perform String Comparison ; Shell Script to Find Sum of Digits ; Shell Script to Reverse a Number ; Shell Script to find Side of a Square ; Shell Script to Find Simple Interest ; Shell Script to Print Multiplication Table. Using while loop we fetch digits of that user entered number one by one. 1) Using Modulus operator(%) 2) Using Bitwise operator. C program to check whether a given number is EVEN or ODD: Here, we are reading an integer number from the user and checking whether it is EVEN or ODD. Therefore, we need to figure out what to do if the user types a negative number. In this program, if…else statement is used to check whether an alphabet entered by the user is a Vowel or Consonant. NET that return true or false. I can't also use the scilab operations like I use in C, when. Write a program to Delete a Tree in C programming. if else ,switch statements can also be used. C++ - Loops to Read Numbers and Check Odd or Even Number I have given here the code to read set of integers and display whether odd or even number Source Code. Numbers like 2,4,6,8,10, etc are even. Lex : Check Whether number is Even or Odd. 0 and 1 are not considered as prime numbers. find whether the number is odd or even Program to check. if (x/2) = integer (x/2) then even else odd. Q 5) Write a C++ program to search an element by using binary search. Description. Write a Java program to check if number is palindrome comes from same category. Algorithm Examples in C# c# odd or even C# Program to Check whether the Entered Number is Even or Odd Even or Odd Numbers in C# Program to check given number is Even or Odd using C# Console Example You may also like. In the above program, a Scanner object, reader is created to read a number from the user's keyboard. The modulus operator % is used to find remainder of any number. Here you will learn to write a program for listing out all the even numbers between two numbers. C++ Program to Check Whether the Given Number is a Prime - A prime number is a natural number that has only one and itself as factors. Count the number of even numbers entered and the number of odd numbers entered. Write a program that inputs two real numbers and tells whether product of the two numbers is a. For determining whether a given (integer) number n is even of odd, you may compute n - 2 * int(n/2); if n is even it returns 0, otherwise 1. Filter even or odd numbers with formula and Filter function You can follow these steps to filter all even numbers and hide all odd numbers in Column A. Write a Program in C to check whether a number entered by. Write following Program using Console Application 1. 1203 is odd. ) I was given this assignment in my c++. When we divide 8 by 2, it give a reminder of 0. In this program, if. C++ code to Check if the given number is Even or Odd Using ternary or conditional Operator. The last digit will essentially be 3,5,7 and 9. Below program explains the above approach:. Or use the boolean AND function and AND the number. But 14 can be divided by 1, 2, 7 and 14 so it is not a prime number but a composite number. PROGRAM #include int main() { int number; printf("Enter an integer: "); scanf("%d", &number); if(number % 2 == 0) printf("\nThe number %d is even. I have to write a program to determine if a number is odd or even. (Note: An even number is prime if it is 2. The loop should repeat so long as the user enters Y or y. When we divide 8 by 2, it give a reminder of 0. That number divided by odd number Is odd else it is even. Flowchart to print A to Z. C program to check whether a character is a vowel or consonant: A user will input a character and we will check whether it is a vowel or not. Here, I have a Assembly Language Program to check if a number in Memory Location is Even or Odd. I have used Code::blocks 12 compiler for debugging purpose. Logic: Take a number. All other numbers are called composite numbers. The starting address of first number is 6000H Write an assembly language program that adds these two numbers and stores the sum in the same format starting from memory location 6200H. What is the fastest way to do an odd/even check with c++ and if needed assembler. When we divide 10 by 2, it give a reminder of 0. To understand Check Even or Odd program, you should have the knowledge of following C++ programming topics: C++ if, ifelse and Nested ifelse Integers which are perfectly divisible by 2 ar. To understand this example, you should have the knowledge of following C++ programming topics: Integers which are perfectly divisible by 2 are called even numbers. Even numbers between 1 to 5 are 2, 4. Here we will just use very basic concepts to solve this problem. That number divided by odd number Is odd else it is even. Write a program that prints a multiplication table for numbers up to 12. Arithmetic on even and odd numbers. NET that return true or false. 2 is the only even prime number. Write C program to check even or odd number using switch case Introduction. Even the experienced programmers will find this website equally useful. In this C# program, we will learn how to write a program to check whether the entered number is Even or Odd. Solution Solution to this example is very simple. The program must search if the value V exists in the array and must remove the first occurrence of V, shifting each following element left and adding a zero at the end of the array. check it out How this program works: we are using arrays to store the values first. number is even: If the entered number is odd: Download Source Code JSP JSTL c:when tag. To understand this program, you should have the knowledge of if-else and user-defined functions in C++. To check if a number is even or odd needs brilliant code. Write a Java program to check if number is palindrome comes from same category. An odd number is any number that are not perfectly divisible by 2. There is a record with fields namely name,roll no. Shell Script to find Greatest of Three numbers. This following program can handle large numbers ( number of digits greater than 20 ). We can use a modulus operator to solve this problem. Find gcd of a number using recursion in c program. Shell Script to find Greatest of Three numbers. Odd and Even numbers.