Prime Number Program in C – Check if a Number is Prime

A prime number program in C checks whether a given integer is prime — divisible only by 1 and itself. Numbers like 2, 3, 5, 7, 11, and 13 are prime; 4, 6, 9, and 12 are not. This page covers two approaches: a basic trial division and an optimized version that skips even numbers, …

C Program to find whether the given year is leap or not.

C Program to find whether the given year is leap or not. Leap year is a year, which is containing one extra day, i.e 366 days. In the leap year February contains the date 29. Read more about C Programming Language . Read more Similar C ProgramsLearn C ProgrammingNumber System You can easily select the …

C Program to find whether the given character is Vowel or Consonant

C Program to find whether the given character is Vowel or Consonant. Here, we use the simple if-else statement to check the particular character is Vowel or Consonant. Read more about C Programming Language .  [gist id=”7112441″ ] Read more Similar C Programs C Strings Data Structures C Sorting You can easily select the code …

C Program for simple calculator, using switch statement

C program to simulate a simple calculator using switch statement.  The calculator should be able to perform basic arithmetic operations like addition, subtraction, multiplication, and division only on integers. Error message should be reported, if any attempt is made to divide by zero. (Using switch statement) . Read more about C Programming Language . [gist …

C Program to find the array c such that c[i] = a[i ]+ b[n-1-i]

Example programs to solve the problems of Arrays in C, a and b are two integers arrays each with n elements. C program to find the array c such that c[i]=a[i]+b[n-1-i]. Read more about C Programming Language . [gist id=”7011382″] Read more Similar C Programs Array In C Simple C Programs You can easily select …