Friday 20, April 2018
Welcome Guest, Register | Login  
      Home       Tutorials       Free Ebooks       Free Scripts       Tech News       Articles       About Us       Blog        Forum

  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
 
arrays and pointers in c
An example code for arrays and pointers in c language....more »
Category : C Programs Hits : 1996
   
Bubble sort using c language
This program will sort an array using bubble sort in c language. c program for bubble sort, bubble sort in c, sorting an array using bubble sort in c language....more »
Category : C Programs Hits : 3765
   
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 : 1828
   
pointer and there uses in c
Example code for pointer and there uses in c language....more »
Category : C Programs Hits : 1972
   
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 : 3596
   
   
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 How to use targeted social networks to reach people of influence and get viral e Ebook How to use targeted social networks to reach people of influence and get viral e
   
Download Biz Opp Of The Decade Ebook Biz Opp Of The Decade
   
Download The Big Picture of Internet success  Ebook The Big Picture of Internet success
   
Download Video Marketing Tactics Using Ebook Video Marketing Tactics Using
   
Download Ajax Design Patterns  Ebook Ajax Design Patterns
   
Studiesinn.com 2018 All Rights Reserved.