Friday, January 23, 2015

FUNCTIONS WITHOUT ARGUMENTS & RETURN TYPE

PROGRAM:

#include<stdio.h> void isleap()
{
int yr;

printf("Enter a Year\n"); scanf("%d",&yr); if(yr%4==0)

printf("Given Year is Leap year");

else

printf("Given Year is Not a Leap year");

}

main()

{

isleap();


}

OUTPUT:

Enter a Year 1965

Given Year is Not a Leap year

No comments:

Post a Comment