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.out.println("please enter the first number"); num1 = input.nextInt(); System.out.println("please enter the second number"); num2 = input.nextInt(); Scanner op = new...

How to find sum of several integers in c++

#include <iostream> using namespace std; int main () { int count = 1; int sum = 0; int number ; int numberiteam ; cout<<" enter num of iteams:  n"; cin>>numberiteam; cout<<"enter number: n"; cin>>number; do { sum = sum + number; count++; } while (count <=6); }  

Latest Posts

Google play services has stopped

How to Fix Google Play Services has stopped Error

Google play services have stopped overview: Most of us love to use Google play services because it gives us so many accesses to enjoy apps,...

Pin It on Pinterest

Share This