Java Exp1-st

  • Uploaded by: jyotsna
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Java Exp1-st as PDF for free.

More details

  • Words: 72
  • Pages: 2
//TITLE: Program to implement given Output class st { public static void main(String args[]) { int i,j,k=7,v=k,l=0,n; char m; for(;k>0;k--) { m='A'; System.out.println(""); for(i=k;i>0;i--) { System.out.print(m); m++; } for(n=l;n>1;n--) { System.out.print(" "); } if(v==k) { m--; m--; j=k-1; } else { m--; j=k; } for(;j>0;j--) { System.out.print(m); m--; } l=l+2; } } } /* C:\>javac st.java C:\>java st ABCDEFGFEDCBA ABCDEF FEDCBA ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A

*/

Related Documents

Java Java
June 2020 44
Java
November 2019 24
Java
November 2019 26
Java
December 2019 27
Java
November 2019 23
Java
November 2019 25

More Documents from ""

Service Blueprint
April 2020 10
Java Exp1-temp
April 2020 6
Java Exp1-array
April 2020 10
Cn Question Bank
April 2020 5
Hci Unit 1 Ch-02
April 2020 10