Write a program to add two numbers in C++ Language - Program to add two numbers in C++

Program to add two numbers in C++ Language

#include <iostream>

using namespace std;

int main() {

  int x, y, sum;

  cout << "\nEnter First Integer = ";

  cin >> x;

  cout << "\nEnter Second Integer = ";

  cin >> y;

  sum = x + y;

  cout << "\n" << x << " + " <<  y << " = " << sum << "\n";

  return 0;

}

इस कोड को हमने CODEBLOCK पर बना कर run किया है


OUTPUT


Comments