All pastes #756061 Raw Edit

SupraFast

public cpp v1 · immutable
#756061 ·published 2007-10-31 03:12 UTC
rendered paste body
#include <iostream.h>/*PrototypesKeep in mind that the prototypes only need to matchtheir types. Below, any of the following will work.*/int addTwoNumbers(int a, int b);//int addTwoNumbers(int num1, int num2);//int addTwoNumbers(int, int);int main(){	int number1;	int number2;	int sum;		//cout is to output text to the console	cout << "Please enter two numbers and I will tell you their sum!\n\n";	cout << "Enter Number1: ";	//cin is used to accept input from the user	cin >> number1;	cout << "Enter Number2: ";	cin >> number2;		//Our functions returns the sum of the two nubmers the user typed in	sum = addTwoNumbers(number1, number2);	cout << "The sum of your two number is: " << sum;	return 1;}int addTwoNumbers(int a, int b){	int sum;		sum = a + b;		return sum;}