Addition Program in C++

#include<iostream>
using namespace std;
int main()
{
	int a = 10;
	int b = 10;
	int c = a+b;
	cout<<"Addition of a + b ="<<c;
}

Addition Program in JAVA


>
public class Addition
{
	public static void main(String[] args)
	{
		int a = 10;
		int b = 10;
		int c = a+b;
		System.out.println("Addition of a+b = " + c);
		
	}
}

OUTPUT

Addition of a + b =20


Java C++ Program