---
title: "Discussion on \"Write a code to print half rotated pyramid.\" | Hashnode"
description: "Discussion on \"Write a code to print half rotated pyramid.\". import java.util.Scanner;\n\n/**\n * Link4\n */\npublic class Link {\n\n    public static void main(String[] args) {\n        Scanner sc =  new Scanner(System.in);\n        System.out.println(\"enter a number\");\n        int n = sc.nextInt();\n        // System...."
url: "https://hashnode.com/posts/write-a-code-to-print-half-rotated-pyramid/642851e436de454fe55e66a2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Write a code to print half rotated pyramid.](https://vaishnavi1511.hashnode.dev/write-a-code-to-print-half-rotated-pyramid?utm_source=hashnode&utm_medium=feed)

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....

Apr 1, 2023 · 1 min read · vaishnavi1511.hashnode.dev  
Read the article

-   [#pyramid](https://hashnode.com/tag/pyramid)

## Written by

[Vaishnavi Shrivastava](https://hashnode.com/@Vaishu1511)

@Vaishu1511

  
[View profile](https://hashnode.com/@Vaishu1511)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
