Answer:
To check if the year comes under each 100th year, lets check if the remainder when dividing with 100 is 0 or not.
Similarly check for 400th year and multiple 0f 4. The following C program describes the function.
#include<stdio.h>
#include<stdbool.h>
bool is_leap_year(int year);
void main()
{
int y;
bool b;
printf("Enter the year in yyyy format: e.g. 1999 \n");
scanf("%d", &y); // taking the input year in yyyy format.
b= is_leap_year(y); //calling the function and returning the output to b
if(b==true)
{
printf("Thae given year is a leap year \n");
}
else
{
printf("The given year is not a leap year \n");
}
}
bool is_leap_year(int year)
{
if(year%100==0) //every 100th year
{
if(year%400==0) //every 400th year
{
return true;
}
else
{
return false;
}
}
if(year%4==0) //is a multiple of 4
{
return true;
}
else
{
return false;
}
}
Explanation:
Output is given as image
Answer:
hot components or sharp edges of computer is an example of a mechanical hazard
The “Allow changes by more than
one user at the same time” option.
In a
group of users, it is very important to create a shared workbook so that
several people are able to update information and track changes in the workbook
at the same time. To do so, one should click on the review tab of the excel sheet and select
share workbook. On the editing tab of the share workbook dialog box, select the
Allow changes by more than one user at the same time check box. Go ahead and
click the advanced tab and select option you would want to use and then click
OK
Answer:
i have no clue sorry:(
Explanation:
I didn't do this to get points i promise