{{ message }}

Instantly share code, notes, and snippets.

Created Nov 2, 2013
C program to find roots of a quadratic equation.
 /*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use the * programs for commercial purposes, * contact info@c-program-example.com * To find more C programs, do visit www.c-program-example.com * and browse! * * Happy Coding ***********************************************************/
Created Oct 31, 2013
C Program to accept two integers for a co-ordinate point and determine its Quadrant.
 /*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use the * programs for commercial purposes, * contact info@c-program-example.com * To find more C programs, do visit www.c-program-example.com * and browse! * * Happy Coding ***********************************************************/
Created Oct 29, 2013
C program to check whether a given number is prime or not.
View primeornot.c
 /*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use the * programs for commercial purposes, * contact info@c-program-example.com * To find more C programs, do visit www.c-program-example.com * and browse! * * Happy Coding ***********************************************************/
Last active Aug 9, 2017
C Program to check whether a given 5 digit number is palindrome or not.
View palindrome.c
 /* C program to check whether a given 5 digit number is palindrome or not * (c) www.c-program-example.com */ #include int main() { int num, rem, i, rev = 0, num1, count = 0; printf("Enter a five digit number:\n");
Created Oct 24, 2013
C program to check whether a given year is leap year or not.
View leapyear.c
 /*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use the * programs for commercial purposes, * contact info@c-program-example.com * To find more C programs, do visit www.c-program-example.com * and browse! * * Happy Coding ***********************************************************/
Created Oct 24, 2013
C program to generate first n Fibonacci numbers.
View fibonacci.c
 /*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use the * programs for commercial purposes, * contact info@c-program-example.com * To find more C programs, do visit www.c-program-example.com * and browse! * * Happy Coding ***********************************************************/
Created Oct 23, 2013
C program to check whether a given character is vowel or consonant.
View vowel.c
 /*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use the * programs for commercial purposes, * contact info@c-program-example.com * To find more C programs, do visit www.c-program-example.com * and browse! * * Happy Coding ***********************************************************/
Last active Mar 1, 2018
C program to implement a simple calculator using switch statement.
View calculator.c
 /*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use * the programs for commercial purposes, * contact info@c-program-example.com * To find more C programs, do visit www.c-program-example.com * and browse! * * Happy Coding ***********************************************************/
Last active May 16, 2018
C program to sort an integer array using bubble sort.
View bubble_sort.c
 /*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use * the programs for commercial purposes, * contact info@c-program-example.com * To find more C programs, do visit www.c-program-example.com * and browse! * Happy Coding ***********************************************************/
Created Oct 21, 2013
Binary search on integer arrays.
View binary_search.c
 /*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use the * programs for commercial purposes, * contact info@c-program-example.com * To find more C programs, do visit www.c-program-example.com * and browse! * This program was originally published at * http://www.c-program-example.com/2011/09/c-program-for-binary-search.html * Happy Coding