Java Program to Print Diamond Alphabets Pattern

Java Program to Print Diamond Alphabets Pattern

Write a Java program to print diamond alphabets pattern using for loop. package Alphabets; import java.util.Scanner; public class DiamondAlps1 { private static Scanner sc; public static void main(String[] args) { sc = new Scanner(System.in); System.out.print(“Enter Diamond Pattern of Alphabets Rows = “); int rows = sc.nextInt(); System.out.println(“Printing Diamond Alphabets Pattern\n”); int i, j, k, alphabet … Read more

Java Program to Print Triangle Alphabets Pattern

Java Program to Print Triangle Alphabets Pattern

Write a Java program to print triangle alphabets pattern using for loop. package Alphabets; import java.util.Scanner; public class TriangleCharacter1 { private static Scanner sc; public static void main(String[] args) { sc = new Scanner(System.in); System.out.print(“Enter Triangle Character Pattern Rows = “); int rows = sc.nextInt(); System.out.println(“Printing Triangle Character/Alphabets Pattern”); for (int i = 0 ; … Read more

Java Program to Print Right Triangle Alphabets Pattern

Java Program to Print Right Triangle Alphabets Pattern

Write a Java program to print right angled triangle alphabets pattern using for loop. package Alphabets; import java.util.Scanner; public class RightTriangleAlphabets1 { private static Scanner sc; public static void main(String[] args) { sc = new Scanner(System.in); System.out.print(“Right Triangle Alphabets Pattern Rows = “); int rows = sc.nextInt(); System.out.println(“Printing Right Triangle Alphabets Pattern”); int alphabet = … Read more

Java Program to Print Repeated Character Pattern

Java Program to Print Repeated Character Pattern

Write a Java program to print repeated character pattern or alphabets in each row pattern using for loop. package Alphabets; import java.util.Scanner; public class RepeatedCharPat1 { private static Scanner sc; public static void main(String[] args) { sc = new Scanner(System.in); System.out.print(“Enter Repeated Character Pattern Rows = “); int rows = sc.nextInt(); System.out.println(“Printing Repeated Character/Alphabets Pattern”); … Read more