arrowSubscribe to receive Tips n Tricks directly to your Inbox | FOLLOW US ON TWITTER | FACEBOOK FAN PAGE

 

C Program to Print INDIA'S MAP




All C Programmers here is the Code for drawing INDIA's MAP on the the Command Prompt Console. Just using the simple C Program consisting of two for loops


#include<stdio.h>
void main()
{
 int a,b,c;
 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);
  }
 }

 getch();
}



Just copy and paste the above code and you will get the output given as the above Image.


Note:
A warning stated "Possibly Incorrect Assignment Occurs.. Just Ignore it and execute the program!"

3 comments »

  • Definitely Me... said:  

    hey dats a good code...
    but can u please explain me this...
    what is the long string in variable 'a'

  • Satyam Chauhan said:  

    Can u Explain me this code. it is good and i run it on my machine.

  • Leave your response!