Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gürcan Güleç
/
iag0581
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
339b27f6
authored
Oct 20, 2016
by
Gürcan Güleç
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modifying calendar.c so it looks better
parent
ca1bf663
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
labs/lab4/calendar.c
labs/lab4/calendar.c
View file @
339b27f6
...
...
@@ -13,7 +13,6 @@
int
main
()
{
int
date
;
int
leap
=
0
;
int
m1
[
7
]
=
{
1
,
3
,
5
,
7
,
8
,
10
,
12
};
...
...
@@ -58,10 +57,8 @@ int main()
return
0
;
}
}
}
// deciding leap years
if
(
year
%
100
==
0
)
{
...
...
@@ -90,7 +87,6 @@ int main()
// checking february
if
(
month
==
2
)
{
if
(
leap
==
1
)
{
if
(
day
!=
29
)
...
...
@@ -106,9 +102,7 @@ int main()
printf
(
"Date not valid
\n
"
);
return
0
;
}
}
}
printf
(
"Date is valid
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment