Tuesday, October 17, 2017

Tag: Java

Simple calculator in Java

import java.util.Scanner; import javax.swing.JOptionPane; /** * * @author Sohail Afzal */public class javaCalculator {public static void main(String args) { int num1; int num2;String operation; Scanner input = new Scanner(System.in);System.out.println("please enter the first number"); num1 =...

Pin It on Pinterest