Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <stdbool.h>
- /**
- * Auto-generated code below aims at helping you parse
- * the standard input according to the problem statement.
- **/
- int main()
- {
- for (int i = 0; i < 16; i++) {
- char line[17];
- scanf("%[^\n]", line); fgetc(stdin);
- for (int j=0; j<strlen(line); j++) {
- printf("%c", line[j]=='1' ? '#' : line[j] == '0' ? ' ' : '\0');
- }
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement