Menu
Shares
Tags
Archive
The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Leap
By Guest on 22nd March 2024 05:23:11 AM | Syntax: PYTHON | Views: 81
New paste
|
Download
|
Show/Hide line no.
|
Copy text to clipboard
#!/bin/bash
echo
"enter the year to be checked"
read y
a
=
$
(
(
y%
400
)
)
z
=
$
(
(
y%
100
)
)
d
=
$
(
(
y%
4
)
)
if
[
$a -eq
0
]
then
x
=
"leap year"
elif
[
$z -eq
0
]
then
x
=
"not leap year"
elif
[
$d -eq
0
]
then
x
=
"leap year"
else
x
=
"not leap year"
fi
echo $x
Tags For This Paste:
leap
Raw Paste:
#!/bin/bash echo "enter the year to be checked" read y a=$((y%400)) z=$((y%100)) d=$((y%4)) if [ $a -eq 0 ] then x="leap year" elif [ $z -eq 0 ] then x="not leap year" elif [ $d -eq 0 ] then x="leap year" else x="not leap year" fi echo $x
Recent Pastes
Exclusive 7_10 Updated d00d π π₯΅...
1 sec ago
Celeb L3eaked vss ππ»π π¦...
1 sec ago
Sis Bro S 3 xx Story ππ...
1 sec ago
CK3 MEGA...
1 hour ago
Mega update C3 4p 7_10_2024 π¦π½...
1 hour ago
π₯πNEW FOLDERSππ₯ 15GB...
1 hour ago
New Age teen leaks 5-17 young paradise i...
1 hour ago
New Age teen leaks 5-17 young paradise i...
1 hour ago
New Age teen leaks 5-17 young paradise i...
1 hour ago
New Age teen leaks 5-17 young paradise i...
1 hour ago
Categories
python
php
javascript
pandas
classes