From 4afd41605649902689f1beba606ea9a546d43e8a Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Fri, 22 Apr 2022 09:28:51 +0200 Subject: [PATCH] as --- du6/program.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/du6/program.c b/du6/program.c index fc99f34..0a33f73 100644 --- a/du6/program.c +++ b/du6/program.c @@ -12,20 +12,19 @@ int main(){ int pocet_mien_v_poli=0; - int p = 0; - scanf("%d",&p); - getchar(); + int p = 0; + scanf("%d",&p); + getchar(); while(1){ char line[SIZE]; memset(line,0,SIZE); char* r = fgets(line,SIZE,stdin); - - int pocet_znakov=0; + + int pocet_znakov=0; if(!r||r[0]=='\n')break; else pocet_znakov=strlen(line); - - int skip=0; + int skip=0; for (int i=0;skip==0&&i='a'&&pole_smernikov[j][i]<='z')||(pole_smernikov[j][i]>='A'&&pole_smernikov[j][i]<='Z')) + continue; + else{ + printf(); + } + } + } printf("Prijati studenti:\n"); for(int i = 0; i