MSK Technologies

Home
Practice Programs
Java Programs Python Programs Java Quiz
Pages
Python Java Material PLSQL Material
Search A Job

Write a C-program to check the given number is valid or invalid(value must divisible by 2 and 3 not 4)?

  1. Home
  2. C Language Programs

Write a C-program to check the given number is valid or invalid(value must divisible by 2 and 3 not 4)?

Write a C-program to check the given number is valid or invalid(value must divisible by 2 and 3 not 4)


#include <stdio.h>

int main() {
    int x;
    printf("Enter x value");
    scanf("%d",&x);
    if(x%2==0 && x%3==0 && x%4!=0)
    {
        printf("Valid Nnumber");
    }
    else
    {
        printf("Invalid Number");
    }
    
    return 0;
}                               

Output:

Enter x value 18
Valid Nnumber
Enter x value 12
Invalid Nnumber




More Programs


27 . Write a C-program to check the given number is valid or invalid(value must divisible by 2 and 3 not 4)
28 . Write a C-program to check the given number is valid or invalid(value must divisible by 2 and 3 not 4 using 2 conditions)
29 . Write a C-program to check the given number is valid or invalid(value must between 20 and 30)
30 . Write a C-program to check the given character is vowel or consonant
31 . Write a C-program to check the given character is small letter or not
32 . Write a C-program to check the given character is capital letter or not
33 . Write a C-program to check the given character is number or not
34 . Write a C-program to check the given character is symbol letter or not
35 . Write a C-program to calculate simple interest with following conditions
36 . Write a C-program to print age
37 . Write a C-program to print max number among three numbers



Apply For The Job

Apply For Job

Java Material

Python Material

PLSQL Material

.Net Material

Java Practice Programs

400 Java Programs

Java Practice Programs

Write a Java program to accept a float value of number and return a rounded float value

Write a java Program to print odd and even numbers from an array

Write a Java program to compute the sum of the first 100 prime numbers

Write a Java program to compare two numbers

Write a Java Program to find largest and second largest in an array

Python Practice Programs

Write a program to merging dictionaries

Write a python program to Find the index of the smallest number in the list

Write a program to check armstrong numbers in certain interval

Write a python program to Find Index Using Enumerate

Write a Python program that accepts a sequence of comma-separated numbers from the user and generates a list and a tuple of those numbers.

Java Quiz

Java Quiz - 5

Java Quiz - 20

Java Quiz - 11

Java Quiz - 12

Java Quiz - 15

Courses
Java Python PLSQL .Net ADO.Net About Us
Quick Links
Daily Use English Sentences Daily General Knowledge General Knowledge Latest Update Inventions and Inventors జనరల్ నాలెడ్జ్ General Knowledge Spoken English Spoken Hindi GK Hindi Telugu Facts Unknown Facts Psychology Facts Motivation Quotes విటమిన్ - సి,డి,ఇ,కె Android
Spiritual
రాధాకృష్ణ భగవద్గీత Motivation Quotes Slokas Talapatra Nidhi ఆధ్యాత్మిక భక్తి ప్రపంచం Sadhguru Sai Motivation Quotes గౌతమ బుద్ధుడు Bhagavad Gita Quotes
Newsletter

Dolor amet sit justo amet elitr clita ipsum elitr est.

© sateeshm, All Right Reserved. Designed By sateeshm
Home Help FQAs