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

Popular posts from this blog

C++ Program to subract 2 no.s

File input/output program to access no. of character, spaces, tabs...