answersLogoWhite

0

#include

using namespace std;

int main()

{

short numberOfDays = 0;

cout << "Enter a number of days (365 or 366): ";

cin >> numberOfDays;

if (numberOfDays == 365)

{

cout << "\nIt's not a leap year\n";

}

else

{

cout << "\nIt's a leap year\n";

}

return 0;

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Lab manual in mca 1st sem from ignou?

write a program in C to check whether a given number is apalindrome or not


Could you write a assembly language program in tasm To check whether a given number present in a sequence of given memory location containing the string to be checked in 8086?

8086 assembly language program to check wether given number is perfect or not


Write a program By using if else statement to read a number and check whether it is positive or negative?

write a c++program by using if statement to read a number and check whether it is positive or negative


Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


Can you write a C program to check whether a string is an IP address or not?

Use the Exception class and type converters.


How do you write a C program to check whether the number is odd or even Ps-using DEV complier?

To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.


Write a c program to check whether a string follows English capitalization rules?

Active Time spent online


Write an algorithm to check whether the given number is odd or even?

Type your answer here... i think we should first enter 1 number then check it


Write a Java Program to find occurences of given word in a text?

Check the documentation of the String class, for a method that searches for a substring.


Write a C program to extract a given word from a file?

program to extract a given word from a file


How can you write a program specification for a given report?

It is your face


Write a PHP program to check whether the string is palindrome or not?

You can do this: &lt;?php if ( $word === strrev( $word ) ) { echo "The word is a palindrome"; } else { echo "The word is not a palindrome"; }