#include <stdio.h> int main() { int x; printf("Enter x value"); scanf("%d",&x); if(x%2==0 && x%3==0) { printf("Valid Nnumber"); } else { printf("Invalid Number"); } return 0; }
Enter x value 12 Valid Nnumber Enter x value 10 Invalid Nnumber
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 that takes two numbers and display the product of two numbers
Write a Java program to print the sum, multiply, subtract, divide and remainder of two numbers
Write a Java program to swap two variables
Write a Java program to swap the first and last elements of an array and create a new array
Write a Java program to convert a decimal number to binary numbers
Write a Python program to find out what version of Python you are using.
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.
Print out a set containing all the colors from a list which are not present in other list
Write a Python program that prints the calendar for a given month and year.
Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.
Java Quiz - 21
Java Quiz - 19
Java Quiz - 13
Java Quiz - 2
Java Quiz - 9