Compare commits

..

No commits in common. "c0abcbca6e8f90838fc9dd606e4684668278cc9f" and "27b82bdd3cf38936294262b54c49949c2c6aceac" have entirely different histories.

2 changed files with 0 additions and 25 deletions

Binary file not shown.

View File

@ -1,25 +0,0 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
int pocet=0;
char mena[50][50];
char riadok[50];
int pocet_mien=0;
scanf("%d\n", &pocet);
while(fgets(riadok,50,stdin)!=NULL && riadok[0]!='\n'){
if(riadok[strlen(riadok)-1]=='\n'){
riadok[strlen(riadok)-1]='\0';
}
strcpy(mena[pocet_mien],riadok);
pocet_mien++ ;
}
for(int i=0; i<pocet_mien; i++){
printf("%s\n", mena[i]);
}
return 0;
}