What do you want to save?
Add Code snippet
New code examples
-
Java 2022-01-29 21:25:51
how to make a calculator using switch case in java
/* Create Switch cases */ Scanner sc= new Scanner(System.in); int firstNum= sc.nextInt(); int secondNum= sc.nextInt(); System.out.println("Enter an operator (+, -, *, /):"); char operator= sc.next().chartAt(0); double result=0; switch(operator){... Add solution -
C 2021-11-13 00:22:15
c program to find number of days in a month using switch case
/** * C program to print number of days in a month using switch case */ #include <stdio.h> int main() { int month; /* Input month number from user */ printf("Enter month number(1-12): "); scanf("%d", &mo... Add solution