Friday 20, July 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
 
C Program to Reverse an array
Here is a program which will take input from user in array and will reverse it using c language....more »
Category : C Programs Hits : 1947
   
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 : 2285
   
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 : 3839
   
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 : 3888
   
Check number is prime or not using c

Here is a code example to check the number is prime or not a prime number. It will input number from user. If number is prime, it will print "Number is prime" on screen and if number is not prime it will print "Number is not prime".

...more »
Category : C Programs Hits : 5599
   
   
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 Really Earn Big With Your Own Internet Business  Ebook How To Really Earn Big With Your Own Internet Business
   
Download Computer Animation: Algorithms and Techniques  Ebook Computer Animation: Algorithms and Techniques
   
Download SEO Made Easy Ebook SEO Made Easy
   
Download How to Optimize for the Pentium Microprocessors  Ebook How to Optimize for the Pentium Microprocessors
   
Download Guide To Cashing In On Ebay Ebook Guide To Cashing In On Ebay
   
Studiesinn.com 2018 All Rights Reserved.