-->
How To: Write C++ Saltation Twelvemonth Programme Inward Dev C++

How To: Write C++ Saltation Twelvemonth Programme Inward Dev C++

How To: Write C++ Saltation Twelvemonth Programme Inward Dev C++

 


#include<iostream>
#include<stdio.h>
#include<conio.h>


using namespace std;

int main()
{

 int year;

 cout << "*** PROGRAM TO GET LEAP YEAR ***";

 cout << "\n\nEnter: ";
 cin >> year;

 if (( twelvemonth % iv == 0 && twelvemonth % 100 !=0 ) || ( twelvemonth % 400 == 0 ) )
 {

  cout << "It's a boundary year";
 } else {


  cout << "\nIt's non a boundary year.";

 }

 getch();
 return 0;
}


Blogger
Disqus
Pilih Sistem Komentar

No comments

Advertiser