This repository contains 2 simple Java problems designed to help beginners build logic and improve their programming skills.
Problem: Write a Java program that takes two numbers and an operator (+, -, *, /) as input and performs the corresponding operation using a switch case.
Example:
Input: 5, 3, +  
Output: 8  
Problem: Write a Java program to print a number pyramid pattern using loops.
Example:
Input: 5  
Output:
    1  
   2 2  
  3 3 3  
 4 4 4 4  
5 5 5 5 5