Update 'du3/program.c'
This commit is contained in:
parent
a25db7d541
commit
d0e696e9ed
@ -3,7 +3,7 @@
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define VELKOST_POLA 50
|
||||
#define VELKOST_POLA 130
|
||||
int main(){
|
||||
char rip[VELKOST_POLA];
|
||||
memset(rip, '\0', VELKOST_POLA*sizeof(char));
|
||||
@ -18,7 +18,7 @@ int main(){
|
||||
if(rip[c] == '\n'){
|
||||
d++;
|
||||
}
|
||||
else if((rip[c]<='6'&&rip[c]>='0') || (rip[c]=='.') || (rip[c]==EOF) || (rip[c]==' '));
|
||||
else if((rip[c]<='9'&&rip[c]>='0') || (rip[c]=='.') || (rip[c]==EOF) || (rip[c]==' '));
|
||||
else if(d == 0){
|
||||
printf("Nepodarilo sa nacitat zaklad x\n");
|
||||
return 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user