C Program to Print Map of India

Today I’m going to be little proud as I’m ready to write a C program to print map of India. This program is little complicated and in the end I’m going to share the logic behind the code.

 

This will be our output:

C Program to Print Map of India

 

Now let’s write the program.

 

C program to print map of India:

#include <stdio.h>
main()

{

int a,b,c;

int count = 1;

for (b=c=10;a=”- FIGURE?, UMKC,XYZHello Folks,

TFy!QJu ROo TNn(ROo)SLq SLq ULo+

UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^

NBELPeHBFHT}TnALVlBLOFAkHFOuFETp

HCStHAUFAgcEAelclcn^r^r\tZvYxXy

T|S~Pn SPm SOn TNn ULo0ULo#ULo-W

Hq!WFs XDt!” [b+++21]; )

for(; a– > 64 ; )

putchar ( +c==’Z’ ? c = c/ 9:33^b&1);

return 0;
}

For explanation see: http://stackoverflow.com/questions/3533348/how-does-this-code-generate-the-map-of-india

Leave a Comment