#include <stdio.h> int main() { int x; printf("Enter x value"); scanf("%d",&x); if(x%6==0 && x%4!=0) { printf("Valid Nnumber"); } else { printf("Invalid Number"); } return 0; }
Enter x value 18 Valid Nnumber Enter x value 12 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 to convert seconds to hour, minute and seconds
Write a Java program to print the sum of two numbers
Write a Java program to swap the first and last elements of an array and create a new array
Write a Java program and compute the sum of the digits of an integer
Write a Java program to display the system time
Write a Python program that accepts a filename from the user and prints the extension of the file.
Write a Python program to display the current date and time.
Write a Python program to get the volume of a sphere with radius six.
Write a Python program to calculate the number of days between two dates.
Write a Python program to calculate the sum of three given numbers. If the values are equal, return three times their sum.
Java Quiz - 14
Java Quiz - 19
Java Quiz - 20
Java Quiz - 5
Java Quiz - 2