Изменить 'du6/program.c'

This commit is contained in:
Oleksandr Hryshchenko 2021-04-16 11:22:02 +00:00
parent 44532ee1e2
commit 611e34ea26

View File

@ -14,7 +14,7 @@ int main() {
for(int i = 0; fgets(inputs[i], 50, stdin) != NULL; i++){
if(i == 0){
inputs[i][strlen(inputs[i])-1] = '\0'
inputs[i][strlen(inputs[i])-1] = '\0';
for(int j = 0; j < strlen(inputs[i]); j++){
if(!isdigit(inputs[i][j])){
printf("Nespravny vstup\n");