Posts

Showing posts from August, 2018

Java program to draw pattern of Indian Map

Image
Java Program to draw Indian Map Pattern. Source Code for the Indian Map Pattern public class Indiamap {  public static void main(String[] args) { int i,j;  for (i=0;i<=40;i++ )  {  for(j=0;j<=34;j++) { if( (i==4&&(j>=8&&j<=11)) ||  (i==5&&(j>=7&&j<=12)) || (i==6&&(j>=9&&j<=15)) ||  (i==7&&(j>=8&&j<=15)) || (i==8&&(j>=9&&j<=14)) ||  (i==9&&(j>=10&&j<=14)) ||  (i==10&&(j>=10&&j<=13)) || (i==11&&(j>=10&&j<=14)) ||  (i==12&&(j>=9&&j<=15)) || (i==13&&((j>=8&&j<=14)||(j>=32&&j<=33))) ||  (i==14&&((j>=7&&j<=15)||(j>=31&&j<=34))) ||  (i==15&&((j>=6&&j<=17)|| (j==25)||(j>=29&&j<=34)))||  (i==16...