Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdbool.h>
- int main()
- {
- char c, cc, b = NULL, e;
- int k = 0, d;
- while (1) {
- c = getchar();
- if (c == EOF) return 0;
- k = 0;
- while (c != ' ' || c != '\n') {
- if (isdigit(c) == true && k != 0) b = c;
- else {
- while (cc != ' ' || cc != '\n') {
- cc = getchar();
- }
- break;
- }
- printf("||");
- c = getchar();
- if (isdigit(c) == true) {
- if (b != NULL) putchar(b);
- }
- k = 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment