#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
Write a Java program to print the ascii value of a given character
Write a Java program to convert seconds to hour, minute and seconds
Write a java Program to print odd and even numbers from an array
Write a java Program to print Armstrong number between 1 to 1000
Write a Java program to compute the square root of an given integer
Write a Python program that calculates the area of a circle based on the radius entered by the user.
Write a python program to print Nlargest numbers
Write a Python program to display the first and last colors from the following list.
Write a Python Program to print Palindrome numbers from 1 to 100
Write a Python program that accepts a filename from the user and prints the extension of the file.
Java Quiz - 3
Java Quiz - 21
Java Quiz - 10
Java Quiz - 12
Java Quiz - 16