SlideShare a Scribd company logo
1 of 2
Download to read offline
Solution
:
public class Figure2
{
public static void main(String args[])
{
int i,j,k;
for(i=1;i<=12;i++)
{
System.out.println();
for(j=12;j>=i;j--)
System.out.print(" ");
if(i==1)
System.out.print("+-----------------------------+");
else if(i<=11)
{
System.out.print("/");
for(j=12;j>i+1;j--)
System.out.print(" ");
for(k=i-1;k>=1;k--)
System.out.print("__/");
}
else if(i==12)
System.out.print("+-----------------------------+");
for(k=i-2;k>=1;k--)
System.out.print("/");
}
System.out.println();
for(i=1;i<=5;i++)
{
System.out.print("| Building Java Programs |");
for(j=5;j>=i;j--)
System.out.print("//");
System.out.println();
}
System.out.print("+-----------------------------+");
}
}

More Related Content

More from anudamobileshopee

The 3 main important things required for migration or transition of .pdf
The 3 main important things required for migration or transition of .pdfThe 3 main important things required for migration or transition of .pdf
The 3 main important things required for migration or transition of .pdfanudamobileshopee
 
Ques-1AnswerThinking of a mumps infection how do the symptoms .pdf
Ques-1AnswerThinking of a mumps infection how do the symptoms .pdfQues-1AnswerThinking of a mumps infection how do the symptoms .pdf
Ques-1AnswerThinking of a mumps infection how do the symptoms .pdfanudamobileshopee
 
POCl3Phosphorus chloride oxideSolutionPOCl3Phosphorus .pdf
POCl3Phosphorus chloride oxideSolutionPOCl3Phosphorus .pdfPOCl3Phosphorus chloride oxideSolutionPOCl3Phosphorus .pdf
POCl3Phosphorus chloride oxideSolutionPOCl3Phosphorus .pdfanudamobileshopee
 
Option 4 is correctSince Si2 is a molecule.Its bonding is   Si -.pdf
Option 4 is correctSince Si2 is a molecule.Its bonding is   Si -.pdfOption 4 is correctSince Si2 is a molecule.Its bonding is   Si -.pdf
Option 4 is correctSince Si2 is a molecule.Its bonding is   Si -.pdfanudamobileshopee
 
What were looking for here are salts in which the anion will not a.pdf
  What were looking for here are salts in which the anion will not a.pdf  What were looking for here are salts in which the anion will not a.pdf
What were looking for here are salts in which the anion will not a.pdfanudamobileshopee
 
Step-1 Calculation of Avilable assets and liabilities Cash 750.pdf
    Step-1 Calculation of Avilable assets and liabilities   Cash 750.pdf    Step-1 Calculation of Avilable assets and liabilities   Cash 750.pdf
Step-1 Calculation of Avilable assets and liabilities Cash 750.pdfanudamobileshopee
 
In repressive operon if RNA polymerase cannot bind to the promoter, .pdf
In repressive operon if RNA polymerase cannot bind to the promoter, .pdfIn repressive operon if RNA polymerase cannot bind to the promoter, .pdf
In repressive operon if RNA polymerase cannot bind to the promoter, .pdfanudamobileshopee
 
Here the required number of ways is 128SolutionHere the requir.pdf
Here the required number of ways is 128SolutionHere the requir.pdfHere the required number of ways is 128SolutionHere the requir.pdf
Here the required number of ways is 128SolutionHere the requir.pdfanudamobileshopee
 
From the incorrectpicture shown, simply move the ethyl group inbetwe.pdf
From the incorrectpicture shown, simply move the ethyl group inbetwe.pdfFrom the incorrectpicture shown, simply move the ethyl group inbetwe.pdf
From the incorrectpicture shown, simply move the ethyl group inbetwe.pdfanudamobileshopee
 
All of the aboveSolutionAll of the above.pdf
All of the aboveSolutionAll of the above.pdfAll of the aboveSolutionAll of the above.pdf
All of the aboveSolutionAll of the above.pdfanudamobileshopee
 
A. The ATH command is the Hayes-compatible command to hangup an ex.pdf
A. The ATH command is the Hayes-compatible command to hangup an ex.pdfA. The ATH command is the Hayes-compatible command to hangup an ex.pdf
A. The ATH command is the Hayes-compatible command to hangup an ex.pdfanudamobileshopee
 
a) Lysosomal proteinsLysosomal proteins as they enter the cis Golg.pdf
a) Lysosomal proteinsLysosomal proteins as they enter the cis Golg.pdfa) Lysosomal proteinsLysosomal proteins as they enter the cis Golg.pdf
a) Lysosomal proteinsLysosomal proteins as they enter the cis Golg.pdfanudamobileshopee
 
A language can be seen as a system suitable for expression of certai.pdf
A language can be seen as a system suitable for expression of certai.pdfA language can be seen as a system suitable for expression of certai.pdf
A language can be seen as a system suitable for expression of certai.pdfanudamobileshopee
 
1. RbI Rubidium iodide2. Cs2SO4 Cesium sulfate3. Al2S3 Alumin.pdf
1. RbI Rubidium iodide2. Cs2SO4 Cesium sulfate3. Al2S3 Alumin.pdf1. RbI Rubidium iodide2. Cs2SO4 Cesium sulfate3. Al2S3 Alumin.pdf
1. RbI Rubidium iodide2. Cs2SO4 Cesium sulfate3. Al2S3 Alumin.pdfanudamobileshopee
 
1) Yes. Hazardous wastes can be liquids, solids, contained gases, or.pdf
1) Yes. Hazardous wastes can be liquids, solids, contained gases, or.pdf1) Yes. Hazardous wastes can be liquids, solids, contained gases, or.pdf
1) Yes. Hazardous wastes can be liquids, solids, contained gases, or.pdfanudamobileshopee
 

More from anudamobileshopee (16)

The 3 main important things required for migration or transition of .pdf
The 3 main important things required for migration or transition of .pdfThe 3 main important things required for migration or transition of .pdf
The 3 main important things required for migration or transition of .pdf
 
Ques-1AnswerThinking of a mumps infection how do the symptoms .pdf
Ques-1AnswerThinking of a mumps infection how do the symptoms .pdfQues-1AnswerThinking of a mumps infection how do the symptoms .pdf
Ques-1AnswerThinking of a mumps infection how do the symptoms .pdf
 
POCl3Phosphorus chloride oxideSolutionPOCl3Phosphorus .pdf
POCl3Phosphorus chloride oxideSolutionPOCl3Phosphorus .pdfPOCl3Phosphorus chloride oxideSolutionPOCl3Phosphorus .pdf
POCl3Phosphorus chloride oxideSolutionPOCl3Phosphorus .pdf
 
Option 4 is correctSince Si2 is a molecule.Its bonding is   Si -.pdf
Option 4 is correctSince Si2 is a molecule.Its bonding is   Si -.pdfOption 4 is correctSince Si2 is a molecule.Its bonding is   Si -.pdf
Option 4 is correctSince Si2 is a molecule.Its bonding is   Si -.pdf
 
m=1Solutionm=1.pdf
m=1Solutionm=1.pdfm=1Solutionm=1.pdf
m=1Solutionm=1.pdf
 
What were looking for here are salts in which the anion will not a.pdf
  What were looking for here are salts in which the anion will not a.pdf  What were looking for here are salts in which the anion will not a.pdf
What were looking for here are salts in which the anion will not a.pdf
 
Step-1 Calculation of Avilable assets and liabilities Cash 750.pdf
    Step-1 Calculation of Avilable assets and liabilities   Cash 750.pdf    Step-1 Calculation of Avilable assets and liabilities   Cash 750.pdf
Step-1 Calculation of Avilable assets and liabilities Cash 750.pdf
 
In repressive operon if RNA polymerase cannot bind to the promoter, .pdf
In repressive operon if RNA polymerase cannot bind to the promoter, .pdfIn repressive operon if RNA polymerase cannot bind to the promoter, .pdf
In repressive operon if RNA polymerase cannot bind to the promoter, .pdf
 
Here the required number of ways is 128SolutionHere the requir.pdf
Here the required number of ways is 128SolutionHere the requir.pdfHere the required number of ways is 128SolutionHere the requir.pdf
Here the required number of ways is 128SolutionHere the requir.pdf
 
From the incorrectpicture shown, simply move the ethyl group inbetwe.pdf
From the incorrectpicture shown, simply move the ethyl group inbetwe.pdfFrom the incorrectpicture shown, simply move the ethyl group inbetwe.pdf
From the incorrectpicture shown, simply move the ethyl group inbetwe.pdf
 
All of the aboveSolutionAll of the above.pdf
All of the aboveSolutionAll of the above.pdfAll of the aboveSolutionAll of the above.pdf
All of the aboveSolutionAll of the above.pdf
 
A. The ATH command is the Hayes-compatible command to hangup an ex.pdf
A. The ATH command is the Hayes-compatible command to hangup an ex.pdfA. The ATH command is the Hayes-compatible command to hangup an ex.pdf
A. The ATH command is the Hayes-compatible command to hangup an ex.pdf
 
a) Lysosomal proteinsLysosomal proteins as they enter the cis Golg.pdf
a) Lysosomal proteinsLysosomal proteins as they enter the cis Golg.pdfa) Lysosomal proteinsLysosomal proteins as they enter the cis Golg.pdf
a) Lysosomal proteinsLysosomal proteins as they enter the cis Golg.pdf
 
A language can be seen as a system suitable for expression of certai.pdf
A language can be seen as a system suitable for expression of certai.pdfA language can be seen as a system suitable for expression of certai.pdf
A language can be seen as a system suitable for expression of certai.pdf
 
1. RbI Rubidium iodide2. Cs2SO4 Cesium sulfate3. Al2S3 Alumin.pdf
1. RbI Rubidium iodide2. Cs2SO4 Cesium sulfate3. Al2S3 Alumin.pdf1. RbI Rubidium iodide2. Cs2SO4 Cesium sulfate3. Al2S3 Alumin.pdf
1. RbI Rubidium iodide2. Cs2SO4 Cesium sulfate3. Al2S3 Alumin.pdf
 
1) Yes. Hazardous wastes can be liquids, solids, contained gases, or.pdf
1) Yes. Hazardous wastes can be liquids, solids, contained gases, or.pdf1) Yes. Hazardous wastes can be liquids, solids, contained gases, or.pdf
1) Yes. Hazardous wastes can be liquids, solids, contained gases, or.pdf
 

Recently uploaded

e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi RajagopalEADTU
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfcupulin
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesAmanpreetKaur157993
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 

Recently uploaded (20)

Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 

Solution public class Figure2 { public static void main(Str.pdf

  • 1. Solution : public class Figure2 { public static void main(String args[]) { int i,j,k; for(i=1;i<=12;i++) { System.out.println(); for(j=12;j>=i;j--) System.out.print(" "); if(i==1) System.out.print("+-----------------------------+"); else if(i<=11) { System.out.print("/"); for(j=12;j>i+1;j--) System.out.print(" "); for(k=i-1;k>=1;k--) System.out.print("__/"); } else if(i==12) System.out.print("+-----------------------------+"); for(k=i-2;k>=1;k--) System.out.print("/"); } System.out.println(); for(i=1;i<=5;i++) { System.out.print("| Building Java Programs |"); for(j=5;j>=i;j--) System.out.print("//"); System.out.println(); }