test
This commit is contained in:
parent
bfe7cc8f88
commit
5a57e2edca
@ -1,6 +1,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define MAX_LINE_LENGTH 100
|
#define MAX_LINE_LENGTH 100
|
||||||
|
|
||||||
@ -8,6 +9,11 @@ int main() {
|
|||||||
char uloha[MAX_LINE_LENGTH];
|
char uloha[MAX_LINE_LENGTH];
|
||||||
|
|
||||||
while (fgets(uloha, MAX_LINE_LENGTH, stdin) != NULL) {
|
while (fgets(uloha, MAX_LINE_LENGTH, stdin) != NULL) {
|
||||||
|
if (strlen(uloha) <= 1) {
|
||||||
|
printf("OK\n");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
int cislo1, cislo2, vysledok_zadany;
|
int cislo1, cislo2, vysledok_zadany;
|
||||||
char operacia;
|
char operacia;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user