# include <iostream.h>
int main( )
{
int year , y ;
cout<<"\n Enter the year : " ;
cin>>year;
cout<<"\n The Year is : " << year;
y = year % 4 ;
y == 0 ? cout<<" Leap Year !! " : cout<<" Not a Leap Year !!";
return 0;
}
Labels: C++ Basic Codes, C++ Codes
Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies| |
---|
0 comments:
Post a Comment