#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
Write a Java program to convert a binary number to decimal number
Write a Java program to compute the sum of the first 100 prime numbers
Write a Java program to compute the square root of an given integer
Write a Java program to convert a string to an integer
Write a Java program to compare two numbers
Write a Python Program to Find the Sum of Natural Numbers.
Write a python program to check memory sizes of list ,set ,tuple
Write a Python program to find the area of a triangle.
Write a Python program to display the current date and time.
Write a python program to find absolute value of a number in the list
Java Quiz - 19
Java Quiz - 4
Java Quiz - 18
Java Quiz - 1
Java Quiz - 5