GTU PRACTICALS

Find all the practical at one place of Gujarat Technological University(GTU) With Solutions.

Pages

  • Home
  • Sofware Engineering
  • Cyber Security
  • JAVA

Saturday, October 6, 2018

Write an interactive program to print a string entrered in a pyramid form. For instance, the string "stream"

 
         
public class Program_9 {

    public static void main(String[] args) {

        int i, j, k;
        String str = "Stream";

        for (i = 0; i < str.length(); i++) {

            for (j = (str.length() / 2) + 1; j >= i; j--) {
                System.out.print(" ");
            }

            for (k = 0; k <= i; k++) {
                System.out.print(str.charAt(k) + " ");
            }
            System.out.println();
        }

    }
}
        
  
By Kathan Patel at October 06, 2018 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Java
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Phases in software development project,overview.

  • Prepare a class diagram for given group of classes using multiplicity, generalization, association concepts. And add at least 5-7 attributes and 3-5 operations for particular class Page, Shape, Point, Line, Arc, Ellipse, Rectangle, Circle
  • Prepare a use case diagram and sequence diagram for a computer email system
  • Prepare a class diagram for given group of classes using multiplicity, generalization, association concepts. And add at least 5-7 attributes and 3-5 operations for particular class. City, Airport, Airline, Pilot, Flight, Plane, Seat, Passenger

Total Pageviews

Blog Archive

  • ►  2019 (18)
    • ►  July (3)
    • ►  June (15)
  • ▼  2018 (9)
    • ▼  October (1)
      • Write an interactive program to print a string ent...
    • ►  September (8)

About Me

My photo
Kathan Patel
View my complete profile

Report Abuse

Search This Blog

  • JAVA
  • Cyber Security
  • Sofware Engineering
Copyright © 2020 GTUPractical15 All Right Reseved . Simple theme. Powered by Blogger.