Monday 20, February 2017
Welcome Guest, Register | Login  
      Home    |    Tutorials    |    Free Ebooks    |    Free Scripts    |    Articles    |    Blog     |    About Us    |    Contact Us

  Check the given year is leap or not using c

This program will input a year and check whether it is a leap year or not.
Cut & Paste Script
#include <stdio.h>
 void main()
 {
    int year;
    printf("Enter a year\n");
    scanf("%d",&year);
    if ( (year % 4) == 0)
       printf("%d is a leap year",year);
    else
       printf("%d is not a leap year\n",year);
 }
 
   
     RELATED SCRIPTS
 
Find Factorials using Recursion in c
This c program will use recursive function and calculate the factorial of given number....more »
Category : C Programs Hits : 1554
   
Print fibonacci series using c language
Here is a c language program which will take number of terms as input from user and prints the fibonacci series using c language loops....more »
Category : C Programs Hits : 3021
   
concatenate two strings c language
Here is an example code to concatenate two strings using clanguage....more »
Category : C Programs Hits : 3123
   
arrays and pointers in c
An example code for arrays and pointers in c language....more »
Category : C Programs Hits : 1743
   
pointer and there uses in c
Example code for pointer and there uses in c language....more »
Category : C Programs Hits : 1776
   
   
SCRIPT CATEGORIES
 
  C Programs
C Programs scripts
  C++ Programs
C++ Programs scripts
  Java Programs
Java Programs scripts
  JavaScript Examples
JavaScript Examples scripts
  PHP Examples
PHP Examples scripts
  VBScript Examples
VBScript Examples scripts
 
 
 
POPULAR E-BOOKS
 
Download 30 Days To Create A Product Ebook 30 Days To Create A Product
   
Download PDQCash Ebook PDQCash
   
Download The Definitive Guide to symfony  Ebook The Definitive Guide to symfony
   
Download PHP 5 Power Programming  Ebook PHP 5 Power Programming
   
Download Magnetic Sponsoring Ebook Magnetic Sponsoring
   
     
Studiesinn.com 2017 All Rights Reserved.
 
Website Designed & Developed by TechXprtz