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();
}
}
}
-------------------------------