English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-06-12 21:42:20 · 4 answers · asked by nikki 2 in Computers & Internet Programming & Design

4 answers

#include

bool IsLeapYear(int y)
{
if(y%4==0)
return true;
return false;
}


void main()
{
int year;
cout<<"Enter the Year : ";
cin>>year;
if(IsLeapYear(year))
cout<<"The Year "< else
cout<<"The Year "< }

2006-06-12 22:03:09 · answer #1 · answered by jmdanial 4 · 1 1

you have a function in borland c bulder and delphi : IsLeapYear

but this is code
georgian (birth ) calender iso 9126

bool IsLeapYear(Year: Word)
{
return (Year mod 4 == 0) && ((Year mod 100 <> 0) || (Year mod 400 == 0)) );
}

regard

2006-06-13 04:50:19 · answer #2 · answered by rezazandieh 3 · 0 0

first u should do u r program first and then check for the library functions if any available for do the same job.

so u should try try untill u get the correct answer try the program.

2006-06-13 07:51:38 · answer #3 · answered by Anonymous · 0 0

Shouldn't you do your own homework?

2006-06-13 05:01:57 · answer #4 · answered by Ryan 4 · 0 0

fedest.com, questions and answers