India by C
Map of India, drawn form C Code.
Going through social networks, I stumbled upon this code. It didn't make much sense to me, except for the fact that there were 2 loops doing something with a large string. But when I compiled it (with a tiny modification), it gave a great result. Here's code and result.
1
2// File: india.c
3// India by C
4#include "stdio.h"
5
6int main()
7{
8 int a,b,c;
9 int count = 1;
10 printf("\n \n \t\t Welcome India \n");
11 for (b=c=10;a="- FIGURE?, UMKC,XYZHello Folks,\
12 TFy!QJu ROo TNn(ROo)SLq SLq ULo+\
13 UHs UJq TNn*RPn/ QPbEWS_JSWQAIJO^ \
14 NBELPeHBFHT}TnA LVlBLOFAkHFOuFE Tp\
15 HCStHAUFAgcEAel clcn^r^r\\tZvYx Xy\
16 T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\
17 Hq!WFs XDt!" [b+++21]; )
18 for(; a-- > 64 ; )
19 putchar ( ++c=='Z' ? c = c/ 9:33^b&1);
20 return 0;
21}
Credits : Amit Adate
comments powered by Disqus