Skip to content
Snippets Groups Projects
Commit ea9cfc11 authored by LEESANGKYEONG's avatar LEESANGKYEONG
Browse files

My printf HW

parent 9c94dd61
No related branches found
No related tags found
No related merge requests found
*.exe
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);
}
Hello World 100
Hello World 100
Error: it is positive
Hello World 100
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment