package com.company; import java.util.Scanner; public class Pattern17whileloop { public static void main(String[] args) { System.out.print("Enter the number of rows with while:"); Scanner sc=new Scanner(System.in); int rows=sc.nextInt(); int row=0; int nsp=1; int nst=rows/2; while(row