Thursday, December 14, 2017

Tag: Coding

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 =...

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

Pin It on Pinterest