Compare commits
No commits in common. "c0abcbca6e8f90838fc9dd606e4684668278cc9f" and "27b82bdd3cf38936294262b54c49949c2c6aceac" have entirely different histories.
c0abcbca6e
...
27b82bdd3c
BIN
du6/program
BIN
du6/program
Binary file not shown.
@ -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;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user