Mercurial > repo
changeset 8720:5e5f88e73008
<shachaf> ` mv orenbow.c src/
author | HackBot |
---|---|
date | Tue, 05 Jul 2016 04:01:54 +0000 |
parents | 2853fdc740d7 |
children | be16b6181a73 |
files | orenbow.c src/orenbow.c |
diffstat | 2 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/orenbow.c Tue Jul 05 04:01:49 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -#include <stdio.h> -int main(){int a,c=1;b:a=getchar();if(a==EOF)return 0;if(!(a&128)||(a&64))printf("\e[%d;1m","\37! $\"#"[c]),c=c+1-6*(c>4);putchar(a);goto b;}
--- a/src/orenbow.c Tue Jul 05 04:01:49 2016 +0000 +++ b/src/orenbow.c Tue Jul 05 04:01:54 2016 +0000 @@ -1,2 +1,2 @@ #include <stdio.h> -int main(){int a,c=1;b:a=getchar();if(a==EOF)return 0;if(!(a&128)||(a&64))printf("\e[%d;1m","\37! $\"#"[c]);putchar(a);c=c+1-6*(c>4);goto b;} +int main(){int a,c=1;b:a=getchar();if(a==EOF)return 0;if(!(a&128)||(a&64))printf("\e[%d;1m","\37! $\"#"[c]),c=c+1-6*(c>4);putchar(a);goto b;}