From 5e395d0687dcb338bd9176734080f8b62d7670b2 Mon Sep 17 00:00:00 2001 From: kk134cv Date: Thu, 14 Mar 2019 22:34:15 +0100 Subject: [PATCH] final ver --- program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program.c b/program.c index 0335370..6cd856d 100644 --- a/program.c +++ b/program.c @@ -11,7 +11,7 @@ int main() //check date validness if((y>=0 && y<=9999) && (m>=1 && m<=12) && (((d>=1 && d<=31) && (m==1 || m==3 || m==5 || m==7 || m==8 || m==10 || m==12)) || ((d>=1 && d<=30) && m==4 || m==6 || m==9 || m==11) || ((d>=1 && d<=28) && m==2) || (d==29 && m==2 && (y%400==0 ||(y%4==0 && y%100!=0))))){ }else{ - puts("Nespravny datum\n"); + puts("Nespravny datum"); return 0; } //setting date