[ create a new paste ] login | about

Link: http://codepad.org/gaZrLfOg    [ raw code | fork ]

ninwa - C, pasted on Sep 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* The C Programming language,
	answer to exercise 1-12 */
#include <stdio.h>

main()
{
	int c;

	while ((c = getchar()) != EOF){
		if( c == ' ' || c == '\n' || c == '\t' )
			putchar('\n');
		else
			putchar(c);
	}
}


Create a new paste based on this one


Comments: