Tuesday 23, May 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
 
Printing triangle of numbers using c
Here is the source code for printing triangle of numbers using c language. In this example user will input a number, it will start from 1 and will go to the give number.
1
2 3
4 5 6
7 8 9 10...more »
Category : C Programs Hits : 2687
   
concatenate two strings c language
Here is an example code to concatenate two strings using clanguage....more »
Category : C Programs Hits : 3170
   
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 : 1619
   
C program to join two strings without using strcat
This c language program will join two strings without using strcat string function....more »
Category : C Programs Hits : 2033
   
Find a substring in another string using c
This program will input a string and a substring and than check whether the substring is present is string or not....more »
Category : C Programs Hits : 3305
   
   
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 List Creation Secrets Leaked Chapters  Ebook List Creation Secrets Leaked Chapters
   
Download Sonic Forex Trading System  Ebook Sonic Forex Trading System
   
Download Guide To Cashing In On eBay Ebook Guide To Cashing In On eBay
   
Download Cashing in with Resell Rights Ebook Cashing in with Resell Rights
   
Download 5 Tips for successful Small Business Marketing Ebook 5 Tips for successful Small Business Marketing
   
     
Studiesinn.com 2017 All Rights Reserved.
 
Website Designed & Developed by TechXprtz