Skip to content

Latest commit

 

History

History

016_Dec23

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

December 23

#include <iostream>
using namespace std;

int sum(int a, int b) {
    int add;

    add = a + b;

    cout << "The sum of a and b is " << add;

    return 0;
}

int main() {
    int numOne, numTwo;

    cout << "Enter number one: ";
    cin >> numOne;

    cout << "Enter number two: ";
    cin >> numTwo;

    sum(numOne, numTwo);

    return 0;
}