---
title: "Vaishnavi Shrivastava (@Vaishu1511) | Hashnode"
description: "Vaishnavi Shrivastava (@Vaishu1511) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@Vaishu1511"
---

@Vaishu1511

# Vaishnavi Shrivastava

@Vaishu1511 · Joined November 2022

### [Take an array of names as input from the user and print them on the screen.](https://vaishnavi1511.hashnode.dev/take-an-array-of-names-as-input-from-the-user-and-print-them-on-the-screen?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); int size = sc.nextInt(); String names\[\] = new String\[size\]; //for inpu...

1 min read · [vaishnavi1511.hashnode.dev](https://vaishnavi1511.hashnode.dev/take-an-array-of-names-as-input-from-the-user-and-print-them-on-the-screen?utm_source=hashnode&utm_medium=feed)

[Apr 3, 2023](https://hashnode.com/posts/take-an-array-of-names-as-input-from-the-user-and-print-them-on-the-screen/642ac51322cc225f578ebef6)

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

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

[Apr 1, 2023](https://hashnode.com/posts/write-a-code-to-print-half-rotated-pyramid/642851e436de454fe55e66a2)

### [write a code to inverse the pyramid .](https://vaishnavi1511.hashnode.dev/write-a-code-to-inverse-the-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....

1 min read · [vaishnavi1511.hashnode.dev](https://vaishnavi1511.hashnode.dev/write-a-code-to-inverse-the-pyramid?utm_source=hashnode&utm_medium=feed)

[Apr 1, 2023](https://hashnode.com/posts/write-a-code-to-inverse-the-pyramid/642842f426c5422ef4b7e902)

### [Print a hollow rectangle star with the help of nested loop](https://vaishnavi1511.hashnode.dev/print-a-hollow-rectangle-star-with-the-help-of-nested-loop?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.out...

1 min read · [vaishnavi1511.hashnode.dev](https://vaishnavi1511.hashnode.dev/print-a-hollow-rectangle-star-with-the-help-of-nested-loop?utm_source=hashnode&utm_medium=feed)

[Apr 1, 2023](https://hashnode.com/posts/print-a-hollow-rectangle-star-with-the-help-of-nested-loop/64283ed88aa96652d68a3af7)

### [Make a Calculator. Take 2 numbers (a & b) from the user .](https://vaishnavi1511.hashnode.dev/make-a-calculator-take-2-numbers-a-b-from-the-user?utm_source=hashnode&utm_medium=feed)

1 : + (Addition) a + b 2 : - (Subtraction) a - b 3 : (Multiplication) a b 4 : / (Division) a / b By through switch statement are as follows : \`\`\`java import java.util.Scanner; public class App { public static void main(String\[\] args) t...

1 min read · [vaishnavi1511.hashnode.dev](https://vaishnavi1511.hashnode.dev/make-a-calculator-take-2-numbers-a-b-from-the-user?utm_source=hashnode&utm_medium=feed)

[Mar 22, 2023](https://hashnode.com/posts/make-a-calculator-take-2-numbers-a-b-from-the-user/641b2db31eb4363aec13a771)
