There is a training little pattern output by character. Program:
#include <stdio.h> #include <stdlib.h> main() { int c; while (c = getchar() != EOF) putchar(c); system("PAUSE"); }
The problem is that it displays this:
so it should be?
There is a training little pattern output by character. Program:
#include <stdio.h> #include <stdlib.h> main() { int c; while (c = getchar() != EOF) putchar(c); system("PAUSE"); }
The problem is that it displays this:
so it should be?
Source: https://ru.stackoverflow.com/questions/210151/
All Articles