6 июл. 2024 г. · Here we will use macros to check the leap year. In macros, we will use the necessary condition to check the leap year and return the answer. |
In this example, you will learn to check whether the year entered by the user is a leap year or not. |
Source Code · Hint: A year is considered a leap year if it is divisible by 4, but not by 100, unless it is also divisible by 400. · For example, for inputs 2000 ... |
How to find leap year using C programming? · #include<stdio.h> · #include<conio.h> · void main() { · int year; · printf("Enter a year: "); · scanf("%d", &year); ... |
10 мая 2020 г. · Try like this! year = int(input("Input year: ")) if year % 4 == 0: print("Year is leap.") if year % 100 == 0 and year % 400 != 0: print("Year is common.") else ... |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |