Check out example codes for "sum of two numbers c++". It will help you in understanding the concepts better.

Code Example 1

#include<iostream>
using namespace std;
int main()
{
	double number1,number2;
  	double sum0;
  	sum=number1+number2;
  	cout<<sum;
}

Learn ReactJs, React Native from akashmittal.com