209k views
2 votes
Write a program to print the sum of two given numbers.

1 Answer

6 votes

Answer:

this program is for c++

Step-by-step explanation:

#include<iostream>

main()

{

int num1,num2,added number;

cout<<"enter your first number";

cin>>num1;

cout<<"enter your second number":

cin>>num2:

num3=num1+num2;

cout<<"the added value of these two are",num3;

}

User Vibha Rathi
by
5.2k points