pano gumawa ng programming gamit ang java na pag enter ng #1 ay addition tapos pag #2 ay subtraction tapos enter ka ng unang numero tapos pangalawa tapos pangatlo tapos pang apat tapos ung sagot

Sagot :

#include <iostream>

using namespace std;

int main()
{
  cout << "Adding Numbers" <<"\n";
 
  int a, b, add;
 
  cout << "Enter the first integer:";
  cin >> a;
  cout << "Enter the second integer:";
  cin >> b;
  add = a + b;
 
  cout << "The sum is" << add << "\n";
 
  system("pause");
  return 0;
}