Answer:
# include <iostream>
#include<stdio.h>
using namespace std;
bool IsLeapYear(int y)
int main()
{
int y;
cout<<"Enter the Year to check Leap or Not"<<endl;
cin>>y;
IsLeapYear(int y);
getch();
}
bool IsLeapYear(int y)
{
if (y%4==0)
{
if (y%100==0)
{
if (y%400==0 )
{
cout<"The year is leap Year";
}
else
{
cout<<" The year is not Leap Year";
}
}
else
{
cout<<"The year is Leap Year" ;
}
}
else
{
cout<<"The year is not Leap Year";
}
}
Explanation:
In this program a function has been defined named as IfLeapYear, to check that whether the entered year is leap year or not. An year taken as integer data type named as y to enter the year to check. If the year is divisible by 4 but not divisible by 100 is the leap year. If the year is divisible by 4, divisible by 100 and also divisible by 400 is the century year and is also the leap year.
To check all the statements, Nested if-else conditions has been used to check multiple requirements of the leap year.
Answer:
a solution to the problem
Explanation:
In organizing his text, the move taken by some cities to help their citizens make better choices will fall into the part where he lists or proffers solutions to the excessive intake of soda and sugary drinks by people. Prior to this part, he might begin by explaining what the problem is, and including data that shows the impact of this problem in the society.
When concluding the text, he may now include details of how the government has intervened in remedying the situation.
A group of reviewers with your highest ratings
Use a different calculator for your equation or put ,variable at end in variable u would put variable u put x y z or whatever variable u solve for
Answer:
dObject will have 2 (two) instance variables.
Explanation: