Vaishnavi Shrivastavavaishnavi1511.hashnode.devยทApr 1, 2023Write a code to print half rotated pyramid.import java.util.Scanner; /** * Link4 */ public class Link { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("enter a number"); int n = sc.nextInt(); // System....PyramidAdd a thoughtful commentNo comments yetBe the first to start the conversation.