initial.txt
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# include <stdio.h>
|
2 |
+
void leapyear ( int ) ;
|
3 |
+
int main( )
|
4 |
+
{
|
5 |
+
int year ;
|
6 |
+
printf ( "\nEnter year: " ) ;
|
7 |
+
scanf ( "%d", &year ) ;
|
8 |
+
leapyear ( year ) ; /* Function call */
|
9 |
+
return 0 ;
|
10 |
+
}
|
11 |
+
void leapyear ( int year )
|
12 |
+
{
|
13 |
+
if ( year % 4 == 0 && year % 100 != 0 || year % 400 == 0 )
|
14 |
+
printf ( "%d is leap year\n", year ) ;
|
15 |
+
else
|
16 |
+
printf ( "%d is not a leap year\n", year ) ;
|
17 |
+
}
|