write a program in c++ how to add two numbers in c++ using visual stdio

The + operator is used for adding these two numbers and result is stored in variable sum.To find sum of two numbers in C++, we will first take two numbers as input from user using cin and store them in two local variable.The power of ten, that you need to multiply the first number with, is the smallest one, ... In C++,
                


 Full Video :)

     
           



#include <iostream>

using namespace std;

int main()

{

int a;

int b;

int c;

cout << "Enter your fisrt number" << endl;

cin >> a;

cout << "Enter your second number" << endl;

cin >> b;

c = a + b;

cout << "sum is = "<<c;

system("pause");
}
Previous
Next Post »

1 comments:

Write comments
yehudiyamane
AUTHOR
3 March 2022 at 07:46 delete

Caesars Palace Resort and Casino - Hollywood, FL
Guests of Caesars Palace Resort and Casino 제주도 출장안마 in 이천 출장샵 Hollywood can enjoy 과천 출장안마 their 대구광역 출장마사지 favorite attractions such as a casino bar, 의왕 출장마사지 free Wi-Fi, a garden, and

Reply
avatar