diff --git a/hello.c b/hello.c new file mode 100644 index 0000000000000000000000000000000000000000..a984106ee1f8ff8ef6b1a46c5429a7d50f37ea19 --- /dev/null +++ b/hello.c @@ -0,0 +1,13 @@ +#include <stdio.h> + +int main() +{ + int a; + fscanf(stdin, "%d", &a); + if (a > 0) + fprintf(stderr, "Error: It is positive\n"); + else + fprintf(stderr, "Error: It is negative\n"); + fprintf(stdout, "Hello, World %-10d\n", a); + return 0; +} diff --git a/input_data b/input_data new file mode 100644 index 0000000000000000000000000000000000000000..25f412a3e1fbddcd4014c99026247350089b6b7b --- /dev/null +++ b/input_data @@ -0,0 +1 @@ +-200 diff --git a/output_data b/output_data new file mode 100644 index 0000000000000000000000000000000000000000..b8656e8e826c9930dc0c1175aaed6afa29137793 --- /dev/null +++ b/output_data @@ -0,0 +1 @@ +This is negative