Skip to content
Snippets Groups Projects
Commit bc75f881 authored by 이장원's avatar 이장원
Browse files

My printf HW

parent 97924fa1
Branches
No related tags found
No related merge requests found
hello.c 0 → 100644
#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;
}
-200
This is negative
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment