#include <stdio.h> int main() { int x; printf("Enter x value"); scanf("%d",&x); x%2==0 ? printf("Even Number") : printf("Odd Number"); return 0; }
Enter x value 10 Even Number Enter x value 11 Odd Number
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Java Practice Programs
400 Java Programs
JDBC
JSP
Servlets
Java Quiz
C Material
C Programs
Java Interview Questions and Answers
SQL Interview Questions and Answers
100 Most Asked Java Interview Questions and Answers
Python Interview Questions
Write a Java program to display the system time
Write a Java program to convert a binary number to decimal number
Write a Java program to convert seconds to hour, minute and seconds
Write a Java program that accepts an integer (n) and computes the value of n+nn+nnn
Write a Java program to print the sum of two numbers
Write a Python program that checks whether a specified value is contained within a group of values.
Write a Python program to test whether a passed letter is a vowel or not.
Write a Python program to calculate the number of days between two dates.
Write a Python program to get n (non-negative integer) copies of the first 2 characters of a given string. Return n copies of the whole string if the length is less than 2.
Write a Python program to count the number 4 in a given list.
Java Quiz - 16
Java Quiz - 23
Java Quiz - 14
Java Quiz - 13
Java Quiz - 3