C++ Program to add 2 integers

#include<iostream>
using namespace std;

int main()
{
    int f1, f2, s;
    cout <<"Enter a value:- ";
    cin >> f1;
    cout <<"Enter a value:- ";
    cin >> f2;
    s=f1+f2;
    cout <<s;
    return 0;
}


Comments