print pyramid in java program user input | user input java program | user define java program

Published: 03 March 2019
on channel: AEA Anand Shaw
435
5

1.) Java JRE And JDK Install:
   • Java JRE And JDK Install  

2.) how to print triangle using any characters and numbers in JAVA in NetBeans:
   • how to print triangle using any characters...  

Our YouTube Channel:
   / @aeaanandshaw  

Our YouTube Channel:
   / aeaanandshaw  

YouTube PlayList:
   / @aeaanandshaw  

Code Here:
-----------------------
import java.util.Scanner;

public class Pt
{
public static void main(String args[])
{
int i, space, rows, k=0;
Scanner scan = new Scanner(System.in);
System.out.print("Enter Number of Rows : ");
rows = scan.nextInt();
for(i=1; i(less than sign put here)=rows; i++)
{
for(space=1; space(less than sign put here)=(rows-i); space++)
{
System.out.print(" ");
}
while(k != (2*i-1))
{
System.out.print("a ");
k++;
}
k = 0;
System.out.println();
}
}
}
-------------------------------


On this page of the site you can watch the video online print pyramid in java program user input | user input java program | user define java program with a duration of hours minute second in good quality, which was uploaded by the user AEA Anand Shaw 03 March 2019, share the link with friends and acquaintances, this video has already been watched 435 times on youtube and it was liked by 5 viewers. Enjoy your viewing!